aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/destination_utils.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 /paludis/resolver/destination_utils.cc
parent79d9f02fb355d81c472f3d94b8b85d5a7639210c (diff)
downloadpaludis-5c2a332b70243cb583a29bb74f712bfca2c1fb76.tar.gz
paludis-5c2a332b70243cb583a29bb74f712bfca2c1fb76.tar.xz
Use Environment rather than PackageDatabase
Diffstat (limited to 'paludis/resolver/destination_utils.cc')
-rw-r--r--paludis/resolver/destination_utils.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/paludis/resolver/destination_utils.cc b/paludis/resolver/destination_utils.cc
index 2d281142e..85f78a838 100644
--- a/paludis/resolver/destination_utils.cc
+++ b/paludis/resolver/destination_utils.cc
@@ -18,6 +18,9 @@
*/
#include <paludis/resolver/destination_utils.hh>
+
+#include <paludis/util/stringify.hh>
+
#include <paludis/package_id.hh>
#include <paludis/metadata_key.hh>
#include <paludis/filtered_generator.hh>
@@ -25,7 +28,7 @@
#include <paludis/generator_handler.hh>
#include <paludis/filter.hh>
#include <paludis/environment.hh>
-#include <paludis/package_database.hh>
+#include <paludis/repository.hh>
using namespace paludis;
using namespace paludis::resolver;
@@ -65,8 +68,7 @@ namespace
{
using namespace std::placeholders;
std::shared_ptr<RepositoryNameSet> result(std::make_shared<RepositoryNameSet>());
- for (auto 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 (! (*r)->installed_root_key())
if ((*r)->destination_interface())