aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-16 23:19:30 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-16 23:19:51 +0000
commit0c0ff58119066f55febdc6b2936e75d74fb9587a (patch)
treeab181dbb5145f15f02364d0cafb9b2f593e3d4e7
parent4f87fd12f82fb6f7b92651cc88e673b50d5ec836 (diff)
downloadpaludis-0c0ff58119066f55febdc6b2936e75d74fb9587a.tar.gz
paludis-0c0ff58119066f55febdc6b2936e75d74fb9587a.tar.xz
Listen to Environment::interest_in_suggestion
-rw-r--r--paludis/resolver/interest_in_spec_helper.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/paludis/resolver/interest_in_spec_helper.cc b/paludis/resolver/interest_in_spec_helper.cc
index 9781720..86e92e0 100644
--- a/paludis/resolver/interest_in_spec_helper.cc
+++ b/paludis/resolver/interest_in_spec_helper.cc
@@ -301,6 +301,15 @@ InterestInSpecHelper::operator() (
return si_take;
}
+ if (dep.spec().if_package() && (suggestion || recommendation))
+ {
+ auto e(_imp->env->interest_in_suggestion(id, *dep.spec().if_package()));
+ if (e.is_true())
+ return si_take;
+ else if (e.is_false())
+ return si_ignore;
+ }
+
return si_untaken;
}
else