aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2013-09-08 09:04:15 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2013-09-08 09:20:00 +0100
commit9c877a1ab941ff8dfc42ced7fb688f00123c86e1 (patch)
tree2b0af304fe65056524cf5de746b08ea32bf9bf41 /src
parentb40b455286e20ff004882b41b036da8119e061d0 (diff)
downloadpaludis-9c877a1ab941ff8dfc42ced7fb688f00123c86e1.tar.gz
paludis-9c877a1ab941ff8dfc42ced7fb688f00123c86e1.tar.xz
Add UninstallConfirmation
Diffstat (limited to 'src')
-rw-r--r--src/clients/cave/cmd_display_resolution.cc1
-rw-r--r--src/clients/cave/resolve_common.cc5
2 files changed, 6 insertions, 0 deletions
diff --git a/src/clients/cave/cmd_display_resolution.cc b/src/clients/cave/cmd_display_resolution.cc
index 20fa2a91a..66cf06cc7 100644
--- a/src/clients/cave/cmd_display_resolution.cc
+++ b/src/clients/cave/cmd_display_resolution.cc
@@ -795,6 +795,7 @@ namespace
[&] (const NotBestConfirmation &) { return "--permit-old-version"; },
[&] (const BreakConfirmation &) { return "--uninstalls-may-break or --remove-if-dependent"; },
[&] (const RemoveSystemPackageConfirmation &) { return "--uninstalls-may-break system"; },
+ [&] (const UninstallConfirmation &) { return "--permit-uninstall (check this very carefully!)"; },
[&] (const MaskedConfirmation &) { return "being unmasked"; },
[&] (const ChangedChoicesConfirmation &) { return "user configuration changes"; }
);
diff --git a/src/clients/cave/resolve_common.cc b/src/clients/cave/resolve_common.cc
index d25c83f3c..1be2ea65d 100644
--- a/src/clients/cave/resolve_common.cc
+++ b/src/clients/cave/resolve_common.cc
@@ -740,6 +740,11 @@ namespace
{
return true;
}
+
+ bool visit(const UninstallConfirmation &) const
+ {
+ return true;
+ }
};
}