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 12:27:24 +0000
commit49d74d6369392cad2391b3e6be8bd562ab754f74 (patch)
tree3ad03e46d7a100d29cde160ec7eeb22b083edee3
parent98c46ad28de04f94998f2247e85a6f5807b5db52 (diff)
downloadpaludis-49d74d6369392cad2391b3e6be8bd562ab754f74.tar.gz
paludis-49d74d6369392cad2391b3e6be8bd562ab754f74.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 d5d4996..fb9bc59 100644
--- a/src/clients/cave/cmd_execute_resolution.cc
+++ b/src/clients/cave/cmd_execute_resolution.cc
@@ -192,7 +192,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,