aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/cmd_print_packages.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-26 18:58:38 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-26 19:00:38 +0000
commit5c2a332b70243cb583a29bb74f712bfca2c1fb76 (patch)
tree0a01f8e624caa2c6639181df45fa80bc20adba84 /src/clients/cave/cmd_print_packages.cc
parent79d9f02fb355d81c472f3d94b8b85d5a7639210c (diff)
downloadpaludis-5c2a332b70243cb583a29bb74f712bfca2c1fb76.tar.gz
paludis-5c2a332b70243cb583a29bb74f712bfca2c1fb76.tar.xz
Use Environment rather than PackageDatabase
Diffstat (limited to 'src/clients/cave/cmd_print_packages.cc')
-rw-r--r--src/clients/cave/cmd_print_packages.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clients/cave/cmd_print_packages.cc b/src/clients/cave/cmd_print_packages.cc
index f07b76fb5..59ef434a2 100644
--- a/src/clients/cave/cmd_print_packages.cc
+++ b/src/clients/cave/cmd_print_packages.cc
@@ -24,10 +24,10 @@
#include <paludis/args/args.hh>
#include <paludis/args/do_help.hh>
#include <paludis/environment.hh>
-#include <paludis/package_database.hh>
#include <paludis/repository.hh>
#include <paludis/util/wrapped_forward_iterator.hh>
#include <paludis/util/set.hh>
+#include <paludis/util/stringify.hh>
#include <iostream>
#include <cstdlib>
@@ -94,7 +94,7 @@ PrintPackagesCommand::run(
std::set<QualifiedPackageName> all_packages;
- for (PackageDatabase::RepositoryConstIterator r(env->package_database()->begin_repositories()), r_end(env->package_database()->end_repositories());
+ for (auto r(env->begin_repositories()), r_end(env->end_repositories());
r != r_end; ++r)
{
if (cmdline.a_repository.specified())