From 5c9777d37c294fd625b575cc985a3aa68e172e1b Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Sat, 10 Nov 2018 13:32:49 +0000 Subject: [PATCH] cmd-build: Update the summary again It took me a while to debug why my newly built images had old ostree commits in them; the summary update was removed in https://github.com/coreos/coreos-assembler/pull/190 Let's add it back in. --- src/cmd-build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cmd-build b/src/cmd-build index 093496b601..783f942a44 100755 --- a/src/cmd-build +++ b/src/cmd-build @@ -109,6 +109,8 @@ composejson=$(pwd)/tmp/compose.json # --cache-only is here since `fetch` is a separate verb. runcompose --cache-only ${FORCE} --add-metadata-from-json "${commitmeta_input_json}" \ --write-composejson-to "${composejson}" +# Always update the summary, since we used to do so +ostree --repo="${workdir}/repo" summary -u # Very special handling for --write-composejson-to as rpm-ostree doesn't # write it if the commit didn't change. if [ -f "${changed_stamp:?}" ]; then