aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Alexander Færøy <ahf@0x90.dk> 2008-11-19 17:27:21 +0100
committerAvatar Alexander Færøy <ahf@0x90.dk> 2008-11-19 17:27:21 +0100
commite7579e763756c20017f58dc1b1fa402ee3e9eb28 (patch)
tree2a91e6324f0c104ab21634190db31a72ee9aca27
parentd5965417069afa9d346007e4404ec4e9d546afd8 (diff)
downloadpaludis-e7579e763756c20017f58dc1b1fa402ee3e9eb28.tar.gz
paludis-e7579e763756c20017f58dc1b1fa402ee3e9eb28.tar.xz
Add user set support to cave print-sets.
-rw-r--r--src/clients/cave/cmd_print_sets.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/clients/cave/cmd_print_sets.cc b/src/clients/cave/cmd_print_sets.cc
index 98479f2..b00f360 100644
--- a/src/clients/cave/cmd_print_sets.cc
+++ b/src/clients/cave/cmd_print_sets.cc
@@ -95,6 +95,10 @@ PrintSetsCommand::run(
std::copy(set_names->begin(), set_names->end(), std::inserter(sets, sets.begin()));
}
+ std::tr1::shared_ptr<const SetNameSet> user_sets(env->set_names());
+ if (user_sets)
+ std::copy(user_sets->begin(), user_sets->end(), std::inserter(sets, sets.begin()));
+
std::copy(sets.begin(), sets.end(), std::ostream_iterator<SetName>(cout, "\n"));
return EXIT_SUCCESS;