aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_repository_TEST_1.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/repositories/e/e_repository_TEST_1.cc
parent79d9f02fb355d81c472f3d94b8b85d5a7639210c (diff)
downloadpaludis-5c2a332b70243cb583a29bb74f712bfca2c1fb76.tar.gz
paludis-5c2a332b70243cb583a29bb74f712bfca2c1fb76.tar.xz
Use Environment rather than PackageDatabase
Diffstat (limited to 'paludis/repositories/e/e_repository_TEST_1.cc')
-rw-r--r--paludis/repositories/e/e_repository_TEST_1.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/repositories/e/e_repository_TEST_1.cc b/paludis/repositories/e/e_repository_TEST_1.cc
index b25028c0d..7e6f853b6 100644
--- a/paludis/repositories/e/e_repository_TEST_1.cc
+++ b/paludis/repositories/e/e_repository_TEST_1.cc
@@ -115,7 +115,7 @@ namespace test_cases
keys->insert("builddir", stringify(FSPath::cwd() / "e_repository_TEST_1_dir" / "build"));
std::shared_ptr<Repository> repo(ERepository::repository_factory_create(&env,
std::bind(from_keys, keys, std::placeholders::_1)));
- env.package_database()->add_repository(1, repo);
+ env.add_repository(1, repo);
std::shared_ptr<FakeInstalledRepository> installed_repo(std::make_shared<FakeInstalledRepository>(
make_named_values<FakeInstalledRepositoryParams>(
@@ -124,7 +124,7 @@ namespace test_cases
n::suitable_destination() = true,
n::supports_uninstall() = true
)));
- env.package_database()->add_repository(2, installed_repo);
+ env.add_repository(2, installed_repo);
InstallAction action(make_named_values<InstallActionOptions>(
n::destination() = installed_repo,