repo: Create metadata commit in ostree_repo_regenerate_metadata
authorDan Nicholson <nicholson@endlessm.com>
Tue, 15 Oct 2019 22:46:59 +0000 (16:46 -0600)
committerDan Nicholson <dbn@endlessos.org>
Tue, 7 Feb 2023 21:50:47 +0000 (14:50 -0700)
commitb88948180129a8866a4c03699c16f21ce40f3b18
treef0cf15124948545bd24e582a639d82cfbc104754
parentb2f02337f86efe55f56ea2ad641a55059c2a2623
repo: Create metadata commit in ostree_repo_regenerate_metadata

Rather than creating the `ostree-metadata` commit in the summary
builtin, do it in the new `ostree_repo_regenerate_metadata` API. The
commit contents are unchanged and the commit is generated before the
summary as before. To keep from triggering an extra summary update,
automatic summary updating is disabled in the transaction.

Since the summary builtin was already using the new API, it will
continue to generate the `ostree-metadata` commit when the repo has a
collection ID. However, the `ostree_repo_regenerate_summary` API will
still only generate the summary file as before.
src/libostree/ostree-repo-commit.c
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo.c
src/ostree/ot-builtin-summary.c