aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-09 12:27:24 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-09 13:10:13 +0000
commitc0563017b7495477e70220087af570ad5c53716a (patch)
tree93c0f2d16ab11d7235dfccd32d6aa035f00705bc
parent0bca303ffd2447cfe6a882f9dfa60cdedeac6576 (diff)
downloadpaludis-c0563017b7495477e70220087af570ad5c53716a.tar.gz
paludis-c0563017b7495477e70220087af570ad5c53716a.tar.xz
Remove rather than add to world
Fixes: ticket:1077
-rw-r--r--src/clients/cave/cmd_execute_resolution.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/clients/cave/cmd_execute_resolution.cc b/src/clients/cave/cmd_execute_resolution.cc
index 047b2fd2b..d263ce71b 100644
--- a/src/clients/cave/cmd_execute_resolution.cc
+++ b/src/clients/cave/cmd_execute_resolution.cc
@@ -193,7 +193,9 @@ namespace
std::copy(cmdline.a_world_specs.begin_args(), cmdline.a_world_specs.end_args(), world_specs->back_inserter());
std::shared_ptr<Sequence<std::string> > removed_if_dependent_names(std::make_shared<Sequence<std::string>>());
- std::copy(cmdline.a_removed_if_dependent_names.begin_args(), cmdline.a_removed_if_dependent_names.end_args(), world_specs->back_inserter());
+ for (auto r(cmdline.a_removed_if_dependent_names.begin_args()), r_end(cmdline.a_removed_if_dependent_names.end_args()) ;
+ r != r_end ; ++r)
+ world_specs->push_back("!" + *r);
ResumeData resume_data(make_named_values<ResumeData>(
n::job_lists() = lists,