aboutsummaryrefslogtreecommitdiff
path: root/src/clients
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients')
-rw-r--r--src/clients/cave/resolve_cmdline.cc4
-rw-r--r--src/clients/cave/resolve_cmdline.hh3
-rw-r--r--src/clients/cave/resolve_common.cc2
3 files changed, 7 insertions, 2 deletions
diff --git a/src/clients/cave/resolve_cmdline.cc b/src/clients/cave/resolve_cmdline.cc
index f60c2bdb0..b6895152d 100644
--- a/src/clients/cave/resolve_cmdline.cc
+++ b/src/clients/cave/resolve_cmdline.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2009, 2010, 2011 Ciaran McCreesh
+ * Copyright (c) 2009, 2010, 2011, 2014 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -295,6 +295,8 @@ ResolveCommandLineResolutionOptions::ResolveCommandLineResolutionOptions(args::A
"all"),
a_one_binary_per_slot(&g_destination_options, "one-binary-per-slot", '\0', "When building a binary package, "
"remove other versions in the same repository and slot (as would be done for non-binary packages).", true),
+ a_chroot_path(&g_destination_options, "chroot-path", '\0', "When making a chroot, only consider destination "
+ "repositories whose root is this value."),
// g_query_options(this, "Query Options", "Query the user interactively when making decisions. "
// "If only --query is specified, prompt for everything. Otherwise, prompt only for the specified decisions."),
diff --git a/src/clients/cave/resolve_cmdline.hh b/src/clients/cave/resolve_cmdline.hh
index 9631e9475..4edaf22a7 100644
--- a/src/clients/cave/resolve_cmdline.hh
+++ b/src/clients/cave/resolve_cmdline.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2009, 2010, 2011 Ciaran McCreesh
+ * Copyright (c) 2009, 2010, 2011, 2014 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -103,6 +103,7 @@ namespace paludis
args::StringSetArg a_via_binary;
args::EnumArg a_dependencies_to_slash;
args::SwitchArg a_one_binary_per_slot;
+ args::StringArg a_chroot_path;
// args::ArgsGroup g_query_options;
// args::SwitchArg a_query;
diff --git a/src/clients/cave/resolve_common.cc b/src/clients/cave/resolve_common.cc
index 4e8c233e1..fe1cb8f51 100644
--- a/src/clients/cave/resolve_common.cc
+++ b/src/clients/cave/resolve_common.cc
@@ -831,6 +831,8 @@ paludis::cave::resolve_common(
find_replacing_helper.set_one_binary_per_slot(resolution_options.a_one_binary_per_slot.specified());
FindRepositoryForHelper find_repository_for_helper(env.get());
+ if (resolution_options.a_chroot_path.specified())
+ find_repository_for_helper.set_chroot_path(FSPath(resolution_options.a_chroot_path.argument()));
GetConstraintsForDependentHelper get_constraints_for_dependent_helper(env.get());
for (args::StringSetArg::ConstIterator i(resolution_options.a_less_restrictive_remove_blockers.begin_args()),