ostree/summary: Add support for adding additional metadata

When updating a summary file, parse additional arguments to the `ostree
summary` command as additional metadata to be put into the summary.

Add some tests for this.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Closes: #961
Approved by: cgwalters
This commit is contained in:
Philip Withnall authored and Atomic Bot committed 2017-06-27 19:19:32 +00:00
1 parent a432a2b420
commit e0ad9b2266
4 files changed
+151 -2

No files matched your search

+10 -1
View File
@@ -73,7 +73,16 @@ Boston, MA 02111-1307, USA.
<term><option>-u</option></term>
<listitem><para>
Update the summary file.
Update the summary file.
</para><para>
Any additional arguments to the command
are treated as additional key–value pairs to be added to the
summary file as additional metadata. They must be in the format
<command><replaceable>KEY</replaceable>=<replaceable>VALUE</replaceable></command>
or as two separate arguments. The keys must be namespaced for
your organisation or repository using a dot prefix. The values
must be in GVariant text format. For example,
<command>exampleos.end-of-life "@t 1445385600"</command>.
</para></listitem>
</varlistentry>