summaryrefslogtreecommitdiff
path: root/tests/test-repo.sh
diff options
context:
space:
mode:
authorPhaedrus Leeds <mwleeds@endlessos.org>2021-02-04 18:50:40 -0800
committerAlexander Larsson <alexander.larsson@gmail.com>2021-02-10 09:17:53 +0100
commit2a111e504294d2711ba85ab22a72b116fef6a7e2 (patch)
treee27984f740ca2c8b6c8a25d3555a452625aee775 /tests/test-repo.sh
parentf85cbcfde255c6739dcae4113d48260fcd5a7255 (diff)
downloadflatpak-2a111e504294d2711ba85ab22a72b116fef6a7e2.tar.gz
common: Add API for listing related refs of installed ref
Currently if a user of libflatpak wants to list the related refs (such as extensions and plugins) of something, they have three options: 1. They can parse the metadata manually with e.g. flatpak_remote_ref_get_metadata() and then key-file operations, but this means re-implementing parts of libflatpak and using key file strings that are not actually public (FLATPAK_METADATA_KEY_...). 2. They can use flatpak_installation_list_installed_related_refs_sync() but this only works for installed related refs not remote ones. 3. They can use flatpak_installation_list_remote_related_refs_sync() but this lists all remotely available related refs, including ones that may not be compatible with the installed version of the main ref (because they don't match any of the values in the "versions" metadata key). So since none of these provide a way to get the remote related refs corresponding to an installed application, add new API for that. For the motivation of this see https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1132
Diffstat (limited to 'tests/test-repo.sh')
-rw-r--r--tests/test-repo.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-repo.sh b/tests/test-repo.sh
index 24e9f955..58867420 100644
--- a/tests/test-repo.sh
+++ b/tests/test-repo.sh
@@ -608,7 +608,7 @@ ok "install with --no-deploy and then --no-pull"
${FLATPAK} ${U} uninstall -y org.test.Hello org.test.Platform
-${FLATPAK} ${U} install -y --no-deploy test-repo hello
+${FLATPAK} ${U} install -y --no-deploy --app test-repo hello
${FLATPAK} ${U} list -d > list-log
assert_not_file_has_content list-log "org\.test\.Hello"
@@ -619,7 +619,7 @@ port=$(cat httpd-port)
${FLATPAK} ${U} remote-modify --url="http://127.0.0.1:${port}/disable-test" test-repo
# Note: The partial ref is only auto-corrected without user interaction because we're using -y
-${FLATPAK} ${U} install -y --no-pull test-repo hello
+${FLATPAK} ${U} install -y --no-pull --app test-repo hello
# re-enable remote
${FLATPAK} ${U} remote-modify --url="http://127.0.0.1:${port}/test" test-repo