From a968b29be2b314bf3fe0ad0cc901c73d685eacfe Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Tue, 16 Apr 2019 17:08:24 -0400 Subject: [PATCH] lib/deploy: Write to journal if nothing to finalize This can happen if a deployment was staged and later cleaned up. Though just as a helper when debugging issues, let's explicitly mention that case. --- src/libostree/ostree-sysroot-deploy.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libostree/ostree-sysroot-deploy.c b/src/libostree/ostree-sysroot-deploy.c index a362fc5b98..e7367bcce7 100644 --- a/src/libostree/ostree-sysroot-deploy.c +++ b/src/libostree/ostree-sysroot-deploy.c @@ -2880,7 +2880,10 @@ _ostree_sysroot_finalize_staged (OstreeSysroot *self, * service when a staged deployment is created. */ if (!self->staged_deployment) - return TRUE; + { + ot_journal_print (LOG_INFO, "No deployment staged for finalization"); + return TRUE; + } /* Notice we send this *after* the trivial `return TRUE` above; this msg implies we've * committed to finalizing the deployment. */