aboutsummaryrefslogtreecommitdiff
path: root/python/additional_tests.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 /python/additional_tests.cc
parent79d9f02fb355d81c472f3d94b8b85d5a7639210c (diff)
downloadpaludis-5c2a332b70243cb583a29bb74f712bfca2c1fb76.tar.gz
paludis-5c2a332b70243cb583a29bb74f712bfca2c1fb76.tar.xz
Use Environment rather than PackageDatabase
Diffstat (limited to 'python/additional_tests.cc')
-rw-r--r--python/additional_tests.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/python/additional_tests.cc b/python/additional_tests.cc
index ee0b13e5d..68e08bf0b 100644
--- a/python/additional_tests.cc
+++ b/python/additional_tests.cc
@@ -28,7 +28,6 @@
#include <paludis/util/make_null_shared_ptr.hh>
#include <paludis/environment.hh>
#include <paludis/environments/test/test_environment.hh>
-#include <paludis/package_database.hh>
#include <paludis/repositories/fake/fake_repository.hh>
#include <paludis/repositories/fake/fake_package_id.hh>
#include <paludis/mask.hh>
@@ -50,7 +49,7 @@ namespace environment
n::environment() = &e,
n::name() = RepositoryName("fakerepo"))));
std::shared_ptr<PackageID> pid(repo->add_version("cat", "pkg", "1.0"));
- e.package_database()->add_repository(0, repo);
+ e.add_repository(0, repo);
bool PALUDIS_ATTRIBUTE((unused)) b2(e.accept_license("l", pid));
@@ -64,8 +63,6 @@ namespace environment
bool PALUDIS_ATTRIBUTE((unused)) b4(e.unmasked_by_user(pid, ""));
- e.package_database();
-
e.bashrc_files();
e.syncers_dirs();