aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/exndbam_repository_TEST.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-21 21:46:28 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-21 21:48:28 +0000
commit977328d782f70c7b3bc4fb52903fa937d037d778 (patch)
treec7e8b29dd906149ac9560a1f93dc7f1f1f1dcbe0 /paludis/repositories/e/exndbam_repository_TEST.cc
parent47533bc320d045cd7b0d8ab1b32a6d43f1332479 (diff)
downloadpaludis-977328d782f70c7b3bc4fb52903fa937d037d778.tar.gz
paludis-977328d782f70c7b3bc4fb52903fa937d037d778.tar.xz
Do uninstalls as part of the install
Diffstat (limited to 'paludis/repositories/e/exndbam_repository_TEST.cc')
-rw-r--r--paludis/repositories/e/exndbam_repository_TEST.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/paludis/repositories/e/exndbam_repository_TEST.cc b/paludis/repositories/e/exndbam_repository_TEST.cc
index 0f8cae9a2..9608cfa8f 100644
--- a/paludis/repositories/e/exndbam_repository_TEST.cc
+++ b/paludis/repositories/e/exndbam_repository_TEST.cc
@@ -40,6 +40,12 @@ using namespace paludis;
namespace
{
+ void cannot_uninstall(const std::tr1::shared_ptr<const PackageID> & id)
+ {
+ if (id)
+ throw InternalError(PALUDIS_HERE, "cannot uninstall");
+ }
+
std::tr1::shared_ptr<OutputManager> make_standard_output_manager(const Action &)
{
return make_shared_ptr(new StandardOutputManager);
@@ -130,6 +136,7 @@ namespace test_cases
InstallAction install_action(make_named_values<InstallActionOptions>(
value_for<n::destination>(exndbam_repo),
value_for<n::make_output_manager>(&make_standard_output_manager),
+ value_for<n::perform_uninstall>(&cannot_uninstall),
value_for<n::replacing>(make_shared_ptr(new PackageIDSequence)),
value_for<n::used_this_for_config_protect>(&dummy_used_this_for_config_protect),
value_for<n::want_phase>(&want_all_phases)