aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-06-01 14:06:04 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-06-01 14:06:04 +0000
commit351bb6835a3ba5d81016e074c466f5c01cc98c37 (patch)
tree9d5379716d39bd2b07ecf33cacecdc70b5fe2342
parent87294dc0c47918934ac032e9a080e8cf386f9bf2 (diff)
downloadpaludis-351bb6835a3ba5d81016e074c466f5c01cc98c37.tar.gz
paludis-351bb6835a3ba5d81016e074c466f5c01cc98c37.tar.xz
Use SomeIDsMightSupportAction, since we check for sure later
-rw-r--r--paludis/dep_list.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/paludis/dep_list.cc b/paludis/dep_list.cc
index 515c7f8..a363300 100644
--- a/paludis/dep_list.cc
+++ b/paludis/dep_list.cc
@@ -442,7 +442,8 @@ DepList::AddVisitor::visit_leaf(const PackageDepSpec & a)
/* find installable candidates, and find the best visible candidate */
std::tr1::shared_ptr<const PackageID> best_visible_candidate;
std::tr1::shared_ptr<const PackageIDSequence> installable_candidates(
- (*d->_imp->env)[selection::AllVersionsSorted(generator::Matches(a) | filter::SupportsAction<InstallAction>())]);
+ (*d->_imp->env)[selection::AllVersionsSorted(generator::Matches(a) &
+ generator::SomeIDsMightSupportAction<InstallAction>())]);
for (PackageIDSequence::ReverseConstIterator p(installable_candidates->rbegin()),
p_end(installable_candidates->rend()) ; p != p_end ; ++p)