aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/resolve_common.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-10 20:16:26 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-10 21:56:15 +0000
commit5a2a63d5769eecc1c3d2c7768f4e62b5bbe06315 (patch)
tree35edbb17d29c8ba910bf79900a41c8d888014ad2 /src/clients/cave/resolve_common.cc
parentb8c496e6a94bb6add2bfc94b0d1616f8aae904a9 (diff)
downloadpaludis-5a2a63d5769eecc1c3d2c7768f4e62b5bbe06315.tar.gz
paludis-5a2a63d5769eecc1c3d2c7768f4e62b5bbe06315.tar.xz
Common code for making uninstall blockers
Diffstat (limited to 'src/clients/cave/resolve_common.cc')
-rw-r--r--src/clients/cave/resolve_common.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/clients/cave/resolve_common.cc b/src/clients/cave/resolve_common.cc
index a42a36922..00d2e4310 100644
--- a/src/clients/cave/resolve_common.cc
+++ b/src/clients/cave/resolve_common.cc
@@ -67,6 +67,7 @@
#include <paludis/resolver/resolution.hh>
#include <paludis/resolver/resolutions_by_resolvent.hh>
#include <paludis/resolver/required_confirmations.hh>
+#include <paludis/resolver/make_uninstall_blocker.hh>
#include <paludis/resolver/allow_choice_changes_helper.hh>
#include <paludis/resolver/allowed_to_remove_helper.hh>
@@ -148,7 +149,7 @@ namespace
p_suggesion.erase(0, 1);
seen_packages = true;
PackageDepSpec s(parse_spec_with_nice_error(p->first.substr(1), env.get(), { }, filter::All()));
- BlockDepSpec bs("!" + stringify(s), s, bk_weak);
+ BlockDepSpec bs(make_uninstall_blocker(s));
result->push_back(stringify(bs));
resolver->add_target(bs, p->second);
}