ostree: Add a "remote refs" command
Works like "ostree refs" but fetches refs from a remote repo. This depends on the remote repo having a summary file, but any repo being served over HTTP *ought* to have one.
This commit is contained in:
1 parent
0dbf91484b
commit
6284beb2b6
6 files changed
+107
No files matched your search
@@ -74,6 +74,11 @@ ${CMD_PREFIX} ostree --repo=repo rev-parse origin:main
|
||||
${CMD_PREFIX} ostree --repo=repo fsck
|
||||
echo "ok pull via metalink"
|
||||
|
||||
# Test fetching the summary through ostree_repo_remote_fetch_summary()
|
||||
${CMD_PREFIX} ostree --repo=repo remote refs origin > origin_refs
|
||||
assert_file_has_content origin_refs "main"
|
||||
echo "ok remote refs via metalink"
|
||||
|
||||
cp metalink-data/metalink.xml{,.orig}
|
||||
cp ostree-srv/gnomerepo/summary{,.orig}
|
||||
|
||||
|
||||
Reference in new issue
Block a user