mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-19 14:22:18 -04:00
appstream: Generate appstream2/$arch branches with uncompressed xml
These delta better, and the files will be downloaded as compressed .filez objects anyway. Closes: #1585 Approved by: alexlarsson
This commit is contained in:
committed by
Atomic Bot
parent
5102a19d22
commit
7fd085acd7
@@ -37,9 +37,15 @@ setup_repo
|
||||
if ! ostree show --repo=repos/test appstream/${ARCH} > /dev/null; then
|
||||
assert_not_reached "No appstream branch"
|
||||
fi
|
||||
if ! ostree show --repo=repos/test appstream2/${ARCH} > /dev/null; then
|
||||
assert_not_reached "No appstream2 branch"
|
||||
fi
|
||||
ostree cat --repo=repos/test appstream/${ARCH} /appstream.xml.gz | gunzip -d > appdata.xml
|
||||
assert_file_has_content appdata.xml "<id>org.test.Hello.desktop</id>"
|
||||
|
||||
ostree cat --repo=repos/test appstream2/${ARCH} /appstream.xml > appdata2.xml
|
||||
assert_file_has_content appdata2.xml "<id>org.test.Hello.desktop</id>"
|
||||
|
||||
# Unsigned repo (not supported with collections; client-side use of collections requires GPG)
|
||||
if [ x${USE_COLLECTIONS_IN_CLIENT-} == xyes ] ; then
|
||||
if GPGPUBKEY=" " GPGARGS=" " setup_repo test-no-gpg org.test.Collection.NoGpg; then
|
||||
|
||||
@@ -60,10 +60,12 @@ ostree --repo=repos/test refs > refs
|
||||
assert_file_has_content refs "^app/org.test.App/$ARCH/master$"
|
||||
assert_file_has_content refs '^ostree-metadata$'
|
||||
assert_file_has_content refs "^appstream/${ARCH}$"
|
||||
assert_file_has_content refs "^appstream2/${ARCH}$"
|
||||
ostree --repo=repos/test refs --collections > refs-collections
|
||||
assert_file_has_content refs-collections "^(org.test.Collection, app/org.test.App/$ARCH/master)$"
|
||||
assert_file_has_content refs-collections '^(org.test.Collection, ostree-metadata)$'
|
||||
assert_file_has_content refs-collections "^(org.test.Collection, appstream/${ARCH})$"
|
||||
assert_file_has_content refs-collections "^(org.test.Collection, appstream2/${ARCH})$"
|
||||
assert_has_file repos/test/summary.sig
|
||||
ostree --repo=repos/test summary --view > summary
|
||||
assert_file_has_content summary '^Collection ID (ostree.summary.collection-id): org.test.Collection$'
|
||||
|
||||
Reference in New Issue
Block a user