diff options
author | 2011-03-10 20:16:26 +0000 | |
---|---|---|
committer | 2011-03-10 21:56:15 +0000 | |
commit | 5a2a63d5769eecc1c3d2c7768f4e62b5bbe06315 (patch) | |
tree | 35edbb17d29c8ba910bf79900a41c8d888014ad2 /paludis/resolver/get_constraints_for_purge_helper.cc | |
parent | b8c496e6a94bb6add2bfc94b0d1616f8aae904a9 (diff) | |
download | paludis-5a2a63d5769eecc1c3d2c7768f4e62b5bbe06315.tar.gz paludis-5a2a63d5769eecc1c3d2c7768f4e62b5bbe06315.tar.xz |
Common code for making uninstall blockers
Diffstat (limited to 'paludis/resolver/get_constraints_for_purge_helper.cc')
-rw-r--r-- | paludis/resolver/get_constraints_for_purge_helper.cc | 3 |
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 ))); |