aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/resolve_common.cc
diff options
context:
space:
mode:
authorAvatar Dimitry Ishenko <dimitry.ishenko@gmail.com> 2014-03-05 11:17:33 -0500
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2014-03-21 15:36:17 +0000
commit4146ff8665112932e5e9cd54f7ed5caf0773e51a (patch)
tree24aac10da3b2d9a14e7f50bf1836195a4f939cdc /src/clients/cave/resolve_common.cc
parent20d93f8212a5d0da626bca631b7e36cc3125cc6b (diff)
downloadpaludis-4146ff8665112932e5e9cd54f7ed5caf0773e51a.tar.gz
paludis-4146ff8665112932e5e9cd54f7ed5caf0773e51a.tar.xz
Add PromoteBinariesHelper
Diffstat (limited to 'src/clients/cave/resolve_common.cc')
-rw-r--r--src/clients/cave/resolve_common.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/clients/cave/resolve_common.cc b/src/clients/cave/resolve_common.cc
index 1be2ea65d..ce353a26a 100644
--- a/src/clients/cave/resolve_common.cc
+++ b/src/clients/cave/resolve_common.cc
@@ -91,6 +91,7 @@
#include <paludis/resolver/remove_hidden_helper.hh>
#include <paludis/resolver/remove_if_dependent_helper.hh>
#include <paludis/resolver/prefer_or_avoid_helper.hh>
+#include <paludis/resolver/promote_binaries_helper.hh>
#include <paludis/user_dep_spec.hh>
#include <paludis/notifier_callback.hh>
@@ -1084,6 +1085,8 @@ paludis::cave::resolve_common(
throw args::DoHelp("Don't understand argument '" + resolution_options.a_recommendations.argument() + "' to '--"
+ resolution_options.a_recommendations.long_name() + "'");
+ PromoteBinariesHelper promote_binaries_helper(env.get());
+
ResolverFunctions resolver_functions(make_named_values<ResolverFunctions>(
n::allow_choice_changes_fn() = std::cref(allow_choice_changes_helper),
n::allowed_to_remove_fn() = std::cref(allowed_to_remove_helper),
@@ -1107,6 +1110,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::promote_binaries_fn() = std::cref(promote_binaries_helper),
n::remove_hidden_fn() = std::cref(remove_hidden_helper),
n::remove_if_dependent_fn() = std::cref(remove_if_dependent_helper)
));