Skip to content

Commit c9f7ad0

Browse files
committed
builder-manifest: run appstreamcli compose with --no-partial-urls
Only when mirroring. This is to be compatible with existing flatpak deployment and appstream-glib See ximion/appstream#505 Should fix #573 Signed-off-by: Hubert Figuière <[email protected]>
1 parent 63905e5 commit c9f7ad0

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ Configure arguments are documented in `meson_options.txt`.
2828

2929
## Runtime dependencies
3030

31-
The `flatpak-builder` tool requires `flatpak` being available on the host to
32-
function. Depending on the manifest used it also requires some commands be available on
33-
the host.
31+
The `flatpak-builder` tool requires `flatpak` and `appstreamcli` >=
32+
0.16.3 being available on the host to function. Depending on the
33+
manifest used it also requires some commands be available on the host.
3434

3535
Very commonly used:
3636

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ AC_DEFINE([GLIB_VERSION_MAX_ALLOWED], [GLIB_VERSION_2_70], [Glib max version])
1818
GLIB_REQS=2.66
1919
OSTREE_REQS=2017.14
2020
FLATPAK_REQS=0.99.1
21-
APPSTREAMCLI_REQS=0.15.0
21+
APPSTREAMCLI_REQS=0.16.3
2222
SYSTEM_DEBUGEDIT_REQS=5.0
2323
LIBDW_REQS=0.172
2424

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ endforeach
4141
debugedit = find_program('debugedit', version: '>= 5.0')
4242

4343
# Require appstream with compose plugin installed
44-
appstreamcli = find_program('appstreamcli', version: '>= 0.15.0')
44+
appstreamcli = find_program('appstreamcli', version: '>= 0.16.3')
4545
appstreamcli_compose = run_command(appstreamcli, ['compose', '--help'], check: true)
4646

4747
subdir('src')

src/builder-manifest.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3053,6 +3053,7 @@ builder_manifest_cleanup (BuilderManifest *self,
30533053
g_print ("Running appstreamcli compose\n");
30543054
g_print ("Saving screenshots in %s\n", flatpak_file_get_path_cached (media_dir));
30553055
if (!appstreamcli_compose (error,
3056+
"--no-partial-urls",
30563057
"--prefix=/",
30573058
origin,
30583059
arg_base_url,

0 commit comments

Comments
 (0)