aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/get_sameness.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2012-09-14 17:40:39 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2012-09-14 18:06:37 +0100
commit7ce0a00a008983de8a8e61d33d41a4f41147db9b (patch)
treeba35068b18f5745145d0eefe02df85c0cd0aa5cc /paludis/resolver/get_sameness.cc
parent2bff9772cc069fe98e281432bddd0b35c1e934e4 (diff)
downloadpaludis-7ce0a00a008983de8a8e61d33d41a4f41147db9b.tar.gz
paludis-7ce0a00a008983de8a8e61d33d41a4f41147db9b.tar.xz
Refactor to allow subslots
Diffstat (limited to 'paludis/resolver/get_sameness.cc')
-rw-r--r--paludis/resolver/get_sameness.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/paludis/resolver/get_sameness.cc b/paludis/resolver/get_sameness.cc
index a993df45f..4e3432c6d 100644
--- a/paludis/resolver/get_sameness.cc
+++ b/paludis/resolver/get_sameness.cc
@@ -73,9 +73,9 @@ namespace
if (s.slot_requirement_ptr())
{
- auto r(visitor_cast<const SlotExactRequirement>(*s.slot_requirement_ptr()));
- if (r && r->from_any_locked())
- tokens.insert("slot_requirement:" + stringify(*std::make_shared<ELikeSlotAnyLockedRequirement>()));
+ auto r(s.slot_requirement_ptr()->maybe_original_requirement_if_rewritten());
+ if (r)
+ tokens.insert("slot_requirement:" + stringify(*r));
else
tokens.insert("slot_requirement:" + stringify(*s.slot_requirement_ptr()));
}