bin/summary: Use ostree_repo_regenerate_metadata
authorDan Nicholson <nicholson@endlessm.com>
Tue, 15 Oct 2019 17:55:22 +0000 (11:55 -0600)
committerDan Nicholson <dbn@endlessos.org>
Tue, 7 Feb 2023 21:50:47 +0000 (14:50 -0700)
commit582d7071d2d56c6250e5b338df8c403a9917856e
treef62d9f60a1c89b8c5485b08ab49e2765c6f841f9
parent1384267973de3908f5b29f5783b31ab3a7264be1
bin/summary: Use ostree_repo_regenerate_metadata

Call `ostree_repo_regenerate_metadata` with the provided GPG and sign
keys to generate and sign the summary in one call. This changes the
handling when GPGME support is disabled but GPG keys are supplied.
Instead of silently ignoring the option, it will now error. IMO that's
better as callers would otherwise not know that the summary is not GPG
signed.
src/ostree/ot-builtin-summary.c