aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/resolve_common.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-05 10:34:42 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-05 10:34:42 +0100
commit975c0c94b62ff647c8aceab9c4ff62ca4e47142e (patch)
tree7d1460d25a2c90a1b152dba9bfe1751c37dab4d5 /src/clients/cave/resolve_common.cc
parent5c950263e9ea902e86030b5fd3a8c6b0760e7539 (diff)
downloadpaludis-975c0c94b62ff647c8aceab9c4ff62ca4e47142e.tar.gz
paludis-975c0c94b62ff647c8aceab9c4ff62ca4e47142e.tar.xz
cave resolve --hide
Diffstat (limited to 'src/clients/cave/resolve_common.cc')
-rw-r--r--src/clients/cave/resolve_common.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/clients/cave/resolve_common.cc b/src/clients/cave/resolve_common.cc
index cad509ba4..9524e0b49 100644
--- a/src/clients/cave/resolve_common.cc
+++ b/src/clients/cave/resolve_common.cc
@@ -91,6 +91,7 @@
#include <paludis/resolver/make_origin_filtered_generator_helper.hh>
#include <paludis/resolver/make_unmaskable_filter_helper.hh>
#include <paludis/resolver/order_early_helper.hh>
+#include <paludis/resolver/remove_hidden_helper.hh>
#include <paludis/resolver/remove_if_dependent_helper.hh>
#include <paludis/resolver/prefer_or_avoid_helper.hh>
@@ -961,6 +962,12 @@ paludis::cave::resolve_common(
i != i_end ; ++i)
prefer_or_avoid_helper.add_avoid_name(disambiguate_if_necessary(env.get(), *i));
+ RemoveHiddenHelper remove_hidden_helper(env.get());
+ for (args::StringSetArg::ConstIterator i(resolution_options.a_hide.begin_args()),
+ i_end(resolution_options.a_hide.end_args()) ;
+ i != i_end ; ++i)
+ remove_hidden_helper.add_hide_spec(parse_spec_with_nice_error(*i, env.get(), { updso_allow_wildcards }, filter::All()));
+
RemoveIfDependentHelper remove_if_dependent_helper(env.get());
for (args::StringSetArg::ConstIterator i(resolution_options.a_remove_if_dependent.begin_args()),
i_end(resolution_options.a_remove_if_dependent.end_args()) ;
@@ -1082,6 +1089,7 @@ paludis::cave::resolve_common(
n::make_unmaskable_filter_fn() = std::cref(make_unmaskable_filter_helper),
n::order_early_fn() = std::cref(order_early_helper),
n::prefer_or_avoid_fn() = std::cref(prefer_or_avoid_helper),
+ n::remove_hidden_fn() = std::cref(remove_hidden_helper),
n::remove_if_dependent_fn() = std::cref(remove_if_dependent_helper)
));