diff options
author | Richard Hughes <richard@hughsie.com> | 2016-06-07 16:28:32 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-06-08 18:02:57 +0100 |
commit | 25d942831dba7d44c4044e960da7bc04dce58f17 (patch) | |
tree | baa94e98d7cc7bbca06d18bc9d51dba65e7a9de0 /data | |
parent | 960a6d9d22d6f7756093ffdb5fa46c1b588991e3 (diff) | |
download | appstream-glib-25d942831dba7d44c4044e960da7bc04dce58f17.tar.gz |
Allow setting the id prefix and origin using a symlink file name
The idea is to encode the scope and user-specified origin in the filename as
flatpak remotes have metadata with the filename `appstream.xml.gz` that have
origin harcoded to 'flatpak'.
We can't set a custom origin when generating the metadata as the remote name
is set client side and can be any string the user chooses.
It's also expected that something like gnome-software will keep the symlink
cache up to date. I'm using ~/.local/share/app-info/xmls at the moment, but if
we decide that the data is actually gnome-software specific then it can move.
Diffstat (limited to 'data')
-rw-r--r-- | data/tests/Makefile.am | 2 | ||||
-rw-r--r-- | data/tests/appstream.xml | 5 | ||||
l--------- | data/tests/flatpak_remote-name.xml | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/data/tests/Makefile.am b/data/tests/Makefile.am index cf8d5f5..6034e2b 100644 --- a/data/tests/Makefile.am +++ b/data/tests/Makefile.am @@ -8,6 +8,7 @@ test_files = \ app-1-1.fc21.x86_64.rpm \ app-console-1-1.fc21.noarch.rpm \ app-extra-1-1.fc21.noarch.rpm \ + appstream.xml \ asb-self-test.xml.gz \ broken.appdata.xml \ broken.metainfo.xml \ @@ -26,6 +27,7 @@ test_files = \ firmware/2_0_2/firmware.bin \ firmware/2_0_2/firmware.inf \ firmware/2_0_2/firmware.metainfo.xml \ + flatpak_remote-name.xml \ font-1-1.fc21.noarch.rpm \ font-serif-1-1.fc21.noarch.rpm \ intltool.appdata.xml.in \ diff --git a/data/tests/appstream.xml b/data/tests/appstream.xml new file mode 100644 index 0000000..630583d --- /dev/null +++ b/data/tests/appstream.xml @@ -0,0 +1,5 @@ +<components origin="flatpak"> +<component type="desktop"> +<id>test.desktop</id> +</component> +</components> diff --git a/data/tests/flatpak_remote-name.xml b/data/tests/flatpak_remote-name.xml new file mode 120000 index 0000000..ce18932 --- /dev/null +++ b/data/tests/flatpak_remote-name.xml @@ -0,0 +1 @@ +appstream.xml
\ No newline at end of file |