app/compose: Add ostree-content-checksum to composejson
This is useful for tracking OSTree content across a pipeline. See related discussions in https://github.com/coreos/coreos-assembler/issues/159. Closes: #1822 Approved by: cgwalters
This commit is contained in:
parent
83a267409d
commit
41673e921e
@ -407,6 +407,8 @@ rpmostree_composeutil_write_composejson (OstreeRepo *repo,
|
|||||||
g_variant_new_uint64 (stats->content_bytes_written));
|
g_variant_new_uint64 (stats->content_bytes_written));
|
||||||
}
|
}
|
||||||
g_variant_builder_add (builder, "{sv}", "ostree-commit", g_variant_new_string (new_revision));
|
g_variant_builder_add (builder, "{sv}", "ostree-commit", g_variant_new_string (new_revision));
|
||||||
|
g_autofree char *content_checksum = ostree_commit_get_content_checksum (new_commit);
|
||||||
|
g_variant_builder_add (builder, "{sv}", "ostree-content-checksum", g_variant_new_string (content_checksum));
|
||||||
const char *commit_version = NULL;
|
const char *commit_version = NULL;
|
||||||
(void)g_variant_lookup (new_commit_inline_meta, OSTREE_COMMIT_META_KEY_VERSION, "&s", &commit_version);
|
(void)g_variant_lookup (new_commit_inline_meta, OSTREE_COMMIT_META_KEY_VERSION, "&s", &commit_version);
|
||||||
if (commit_version)
|
if (commit_version)
|
||||||
|
Loading…
Reference in New Issue
Block a user