From 9c877a1ab941ff8dfc42ced7fb688f00123c86e1 Mon Sep 17 00:00:00 2001 From: Ciaran McCreesh Date: Sun, 8 Sep 2013 09:04:15 +0100 Subject: Add UninstallConfirmation --- src/clients/cave/cmd_display_resolution.cc | 1 + src/clients/cave/resolve_common.cc | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'src') 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; + } }; } -- cgit v1.2.3