ostree/summary: Generate an ostree-metadata ref when updating summary
authorPhilip Withnall <withnall@endlessm.com>
Mon, 11 Sep 2017 13:42:52 +0000 (14:42 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 2 Oct 2017 13:39:41 +0000 (13:39 +0000)
commitfeeb3548f4e00fb60481f9105c68e4f2322ab92a
treefdad02a96b8d205c45cb7fb1cf60bcada828ef53
parent16aa4d728a5c92fc44d35d29c631708d1cc31eec
ostree/summary: Generate an ostree-metadata ref when updating summary

This is the new way of publishing repository metadata, rather than as
additional-metadata in the summary file. The use of an ostree-metadata
ref means that the metadata from multiple upstream collections is not
conflated when doing P2P mirroring of many repositories.

The new ref is only generated if the repository has a collection ID set.
The old summary file continues to be generated for backwards
compatibility (and because it continues to be the canonical ref →
checksum map for the repository).

The new code is only used if configured with --enable-experimental-api.

Includes unit tests.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1158
Approved by: cgwalters
man/ostree-summary.xml
src/ostree/ot-builtin-summary.c
tests/test-summary-update.sh