From 5c3f5738f59e36d2e71f385c1eee7b68ddfb2e1c Mon Sep 17 00:00:00 2001 From: Rafael Fonseca Date: Fri, 22 Nov 2019 22:51:18 +0100 Subject: [PATCH] fixup! admin/deploy: Add new CLI option to retain previous version Use _with_flags version --- src/ostree/ot-admin-builtin-deploy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ostree/ot-admin-builtin-deploy.c b/src/ostree/ot-admin-builtin-deploy.c index ed0262e06f..9318c228a1 100644 --- a/src/ostree/ot-admin-builtin-deploy.c +++ b/src/ostree/ot-admin-builtin-deploy.c @@ -178,8 +178,8 @@ ot_admin_builtin_deploy (int argc, char **argv, OstreeCommandInvocation *invocat OstreeSysrootSimpleWriteDeploymentFlags flags = 0; if (opt_retain_previous) flags = OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN_PREVIOUS_VERSION; - if (!ostree_sysroot_stage_tree (sysroot, opt_osname, revision, origin, merge_deployment, - kargs_strv, &new_deployment, flags, cancellable, error)) + if (!ostree_sysroot_stage_tree_with_flags (sysroot, opt_osname, revision, origin, merge_deployment, + kargs_strv, &new_deployment, flags, cancellable, error)) return FALSE; g_assert (new_deployment); }