aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/decider.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/resolver/decider.cc')
-rw-r--r--paludis/resolver/decider.cc19
1 files changed, 13 insertions, 6 deletions
diff --git a/paludis/resolver/decider.cc b/paludis/resolver/decider.cc
index a89d31333..63505146e 100644
--- a/paludis/resolver/decider.cc
+++ b/paludis/resolver/decider.cc
@@ -1818,12 +1818,19 @@ Decider::_find_installable_id_candidates_for(
{
Context context("When finding installable ID candidates for '" + stringify(package) + "':");
- return (*_imp->env)[selection::AllVersionsSorted(
- _make_origin_filtered_generator(generator::Package(package)) |
- slot_filter |
- filter::SupportsAction<InstallAction>() |
- (include_errors ? filter::All() : include_unmaskable ? _make_unmaskable_filter(package) : filter::NotMasked())
- )];
+ return _remove_hidden(
+ (*_imp->env)[selection::AllVersionsSorted(
+ _make_origin_filtered_generator(generator::Package(package)) |
+ slot_filter |
+ filter::SupportsAction<InstallAction>() |
+ (include_errors ? filter::All() : include_unmaskable ? _make_unmaskable_filter(package) : filter::NotMasked())
+ )]);
+}
+
+const std::shared_ptr<const PackageIDSequence>
+Decider::_remove_hidden(const std::shared_ptr<const PackageIDSequence> & ids) const
+{
+ return _imp->fns.remove_hidden_fn()(ids);
}
const Decider::FoundID