aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/exndbam_repository_TEST.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-22 17:06:57 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-22 17:40:59 +0000
commite5c1faf7cfe38630d1e7d1bb430fe2d841af94a3 (patch)
tree6c1983942423fd1f97a8161a447344da4bf8646d /paludis/repositories/e/exndbam_repository_TEST.cc
parent39050ab76715bebb2a800a7d53bc4bad7795d027 (diff)
downloadpaludis-e5c1faf7cfe38630d1e7d1bb430fe2d841af94a3.tar.gz
paludis-e5c1faf7cfe38630d1e7d1bb430fe2d841af94a3.tar.xz
Let merges uninstall things
Diffstat (limited to 'paludis/repositories/e/exndbam_repository_TEST.cc')
-rw-r--r--paludis/repositories/e/exndbam_repository_TEST.cc14
1 files changed, 5 insertions, 9 deletions
diff --git a/paludis/repositories/e/exndbam_repository_TEST.cc b/paludis/repositories/e/exndbam_repository_TEST.cc
index 9608cfa8f..d03bd5f2e 100644
--- a/paludis/repositories/e/exndbam_repository_TEST.cc
+++ b/paludis/repositories/e/exndbam_repository_TEST.cc
@@ -40,10 +40,10 @@ using namespace paludis;
namespace
{
- void cannot_uninstall(const std::tr1::shared_ptr<const PackageID> & id)
+ void do_uninstall(const std::tr1::shared_ptr<const PackageID> & id, const UninstallActionOptions & u)
{
- if (id)
- throw InternalError(PALUDIS_HERE, "cannot uninstall");
+ UninstallAction a(u);
+ id->perform_action(a);
}
std::tr1::shared_ptr<OutputManager> make_standard_output_manager(const Action &)
@@ -61,10 +61,6 @@ namespace
return mm->second;
}
- void dummy_used_this_for_config_protect(const std::string &)
- {
- }
-
WantPhase want_all_phases(const std::string &)
{
return wp_yes;
@@ -136,14 +132,14 @@ 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::perform_uninstall>(&do_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)
));
UninstallAction uninstall_action(make_named_values<UninstallActionOptions>(
value_for<n::config_protect>(""),
+ value_for<n::is_overwrite>(false),
value_for<n::make_output_manager>(&make_standard_output_manager)
));