aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/resolve_common.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/cave/resolve_common.cc')
-rw-r--r--src/clients/cave/resolve_common.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/clients/cave/resolve_common.cc b/src/clients/cave/resolve_common.cc
index ce353a2..45a779f 100644
--- a/src/clients/cave/resolve_common.cc
+++ b/src/clients/cave/resolve_common.cc
@@ -1086,6 +1086,13 @@ paludis::cave::resolve_common(
+ resolution_options.a_recommendations.long_name() + "'");
PromoteBinariesHelper promote_binaries_helper(env.get());
+ if (resolution_options.a_promote_binaries.argument() == "never")
+ promote_binaries_helper.set_promote_binaries(pb_never);
+ else if (resolution_options.a_promote_binaries.argument() == "if-same")
+ promote_binaries_helper.set_promote_binaries(pb_if_same);
+ else
+ throw args::DoHelp("Don't understand argument '" + resolution_options.a_promote_binaries.argument() + "' to '--"
+ + resolution_options.a_promote_binaries.long_name() + "'");
ResolverFunctions resolver_functions(make_named_values<ResolverFunctions>(
n::allow_choice_changes_fn() = std::cref(allow_choice_changes_helper),