Skip to content

Commit

Permalink
fixup! admin/deploy: Add new CLI option to retain previous version
Browse files Browse the repository at this point in the history
Use _with_flags version
  • Loading branch information
r4f4 committed Nov 22, 2019
1 parent 5d07804 commit 5c3f573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ostree/ot-admin-builtin-deploy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5c3f573

Please sign in to comment.