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:23:35 -0500
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2014-03-21 15:36:19 +0000
commit3a35488e4b85c73ad201427b36e114347ad1cf09 (patch)
tree8382b359430cd0f7378728b2329d81b9343d5016 /src/clients/cave/resolve_common.cc
parent4146ff8665112932e5e9cd54f7ed5caf0773e51a (diff)
downloadpaludis-3a35488e4b85c73ad201427b36e114347ad1cf09.tar.gz
paludis-3a35488e4b85c73ad201427b36e114347ad1cf09.tar.xz
Add --promote-binaries option
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 ce353a26a..45a779f6b 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),