Commit fba37bf
committed
builder-manifest: Run appstream-compose with no-partial-urls argument
When 0.16.3 is available
This is an alternative to #576
We check at runtime instead of build-time and downgrade instead of
erroring. Checking at build time is insufficient as there is no
guarantee flatpak-builder is run with the same appstream version it
was compiled with.
Ideally we want to compose with `--no-partial-urls` so a warning is
printed if it is not found.
`--no-partial-urls` makes the mirrored URLs in appstream catalogue
data the full URL. So if
`--mirror-screenshot-url=https://example.org/media` and the metainfo
has
`<screenshot><image>https://github.com/foobar.png</image></screenshot>`
After composing with `--no-partial-urls`, it will become
<screenshot><image>https://example.org/media/foobar.png</image></screenshot>`
instead of `/media/foobar.png`.
This is needed by Flathub and generally should be a standard
requirement for any software store (to have a full working URL
instead of a partial whatever-that-is).1 parent c86e6c1 commit fba37bf
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3056 | 3056 | | |
3057 | 3057 | | |
3058 | 3058 | | |
| 3059 | + | |
| 3060 | + | |
| 3061 | + | |
| 3062 | + | |
| 3063 | + | |
| 3064 | + | |
3059 | 3065 | | |
3060 | 3066 | | |
3061 | 3067 | | |
| 3068 | + | |
3062 | 3069 | | |
3063 | 3070 | | |
3064 | 3071 | | |
| |||
0 commit comments