aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2012-08-05 19:49:57 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2012-08-05 19:49:57 +0100
commit151cfa6b0a01bc49a6cf6497a6c5e63fe580a3fc (patch)
treeb0f2e8ccde741663ef2e75622f31fcbae77ddfe4 /src
parent0906210f523f19a18143b5352734082ee482c443 (diff)
downloadpaludis-151cfa6b0a01bc49a6cf6497a6c5e63fe580a3fc.tar.gz
paludis-151cfa6b0a01bc49a6cf6497a6c5e63fe580a3fc.tar.xz
Allow skipping uninstall phases.
Fixes: ticket:1251
Diffstat (limited to 'src')
-rw-r--r--src/clients/cave/cmd_perform.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/clients/cave/cmd_perform.cc b/src/clients/cave/cmd_perform.cc
index fd8be0bf7..4981e41e6 100644
--- a/src/clients/cave/cmd_perform.cc
+++ b/src/clients/cave/cmd_perform.cc
@@ -588,13 +588,15 @@ PerformCommand::run(
return EXIT_SUCCESS;
OutputManagerFromIPCOrEnvironment output_manager_holder(env.get(), cmdline, id);
+ WantInstallPhase want_phase(cmdline, output_manager_holder);
UninstallActionOptions options(make_named_values<UninstallActionOptions>(
n::config_protect() = cmdline.a_config_protect.argument(),
n::if_for_install_id() = make_null_shared_ptr(),
n::ignore_for_unmerge() = &ignore_nothing,
n::is_overwrite() = false,
n::make_output_manager() = std::ref(output_manager_holder),
- n::override_contents() = make_null_shared_ptr()
+ n::override_contents() = make_null_shared_ptr(),
+ n::want_phase() = want_phase
));
UninstallAction uninstall_action(options);
execute(env, cmdline, id, action, uninstall_action, output_manager_holder);