aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/get_constraints_for_purge_helper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/resolver/get_constraints_for_purge_helper.cc')
-rw-r--r--paludis/resolver/get_constraints_for_purge_helper.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/paludis/resolver/get_constraints_for_purge_helper.cc b/paludis/resolver/get_constraints_for_purge_helper.cc
index 8d48da011..c410c78f7 100644
--- a/paludis/resolver/get_constraints_for_purge_helper.cc
+++ b/paludis/resolver/get_constraints_for_purge_helper.cc
@@ -23,6 +23,7 @@
#include <paludis/resolver/resolvent.hh>
#include <paludis/resolver/resolution.hh>
#include <paludis/resolver/decision.hh>
+#include <paludis/resolver/make_uninstall_blocker.hh>
#include <paludis/util/pimp-impl.hh>
#include <paludis/util/visitor_cast.hh>
#include <paludis/util/make_shared_copy.hh>
@@ -90,7 +91,7 @@ GetConstraintsForPurgeHelper::operator() (
n::from_id() = id,
n::nothing_is_fine_too() = true,
n::reason() = reason,
- n::spec() = BlockDepSpec("!" + stringify(spec), spec, bk_weak),
+ n::spec() = make_uninstall_blocker(spec),
n::untaken() = ! _imp->purge_specs.match_any(_imp->env, id, { }),
n::use_existing() = ue_if_possible
)));