From 8d844c2c397f599d19721e74137d095760c2a306 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Mon, 25 Jul 2016 11:02:36 -0400 Subject: [PATCH] pkg-layering: print transaction on dry run Commit d153ece removes redundant transaction printing, but we do still want to print it manually when we're doing a dry run. Closes: #407 Approved by: cgwalters --- src/daemon/rpmostree-sysroot-upgrader.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/daemon/rpmostree-sysroot-upgrader.c b/src/daemon/rpmostree-sysroot-upgrader.c index adc4f83d..bb0393e1 100644 --- a/src/daemon/rpmostree-sysroot-upgrader.c +++ b/src/daemon/rpmostree-sysroot-upgrader.c @@ -1131,10 +1131,9 @@ overlay_final_pkgset (RpmOstreeSysrootUpgrader *self, if (!rpmostree_context_prepare_install (ctx, &install, cancellable, error)) goto out; - /* we just printed the transaction in prepare_install() -- leave here if it's - * a dry run */ if (self->flags & RPMOSTREE_SYSROOT_UPGRADER_FLAGS_PKGOVERLAY_DRY_RUN) { + rpmostree_print_transaction (rpmostree_context_get_hif (ctx)); ret = TRUE; goto out; }