diff options
author | 2012-09-14 17:40:39 +0100 | |
---|---|---|
committer | 2012-09-14 18:06:37 +0100 | |
commit | 7ce0a00a008983de8a8e61d33d41a4f41147db9b (patch) | |
tree | ba35068b18f5745145d0eefe02df85c0cd0aa5cc /paludis/resolver/get_constraints_for_purge_helper.cc | |
parent | 2bff9772cc069fe98e281432bddd0b35c1e934e4 (diff) | |
download | paludis-7ce0a00a008983de8a8e61d33d41a4f41147db9b.tar.gz paludis-7ce0a00a008983de8a8e61d33d41a4f41147db9b.tar.xz |
Refactor to allow subslots
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 60280c801..9bde04ea2 100644 --- a/paludis/resolver/get_constraints_for_purge_helper.cc +++ b/paludis/resolver/get_constraints_for_purge_helper.cc @@ -36,6 +36,7 @@ #include <paludis/partially_made_package_dep_spec.hh> #include <paludis/elike_slot_requirement.hh> #include <paludis/metadata_key.hh> +#include <paludis/slot.hh> using namespace paludis; using namespace paludis::resolver; @@ -80,7 +81,7 @@ GetConstraintsForPurgeHelper::operator() ( PartiallyMadePackageDepSpec partial_spec({ }); partial_spec.package(id->name()); if (id->slot_key()) - partial_spec.slot_requirement(std::make_shared<ELikeSlotExactRequirement>(id->slot_key()->parse_value(), false)); + partial_spec.slot_requirement(std::make_shared<ELikeSlotExactPartialRequirement>(id->slot_key()->parse_value().parallel_value(), make_null_shared_ptr())); PackageDepSpec spec(partial_spec); const std::shared_ptr<WasUsedByReason> reason(std::make_shared<WasUsedByReason>(was_used_by_ids)); |