aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/vdb_repository_TEST_eapis.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/vdb_repository_TEST_eapis.cc
parent79d9f02fb355d81c472f3d94b8b85d5a7639210c (diff)
downloadpaludis-5c2a332b70243cb583a29bb74f712bfca2c1fb76.tar.gz
paludis-5c2a332b70243cb583a29bb74f712bfca2c1fb76.tar.xz
Use Environment rather than PackageDatabase
Diffstat (limited to 'paludis/repositories/e/vdb_repository_TEST_eapis.cc')
-rw-r--r--paludis/repositories/e/vdb_repository_TEST_eapis.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/paludis/repositories/e/vdb_repository_TEST_eapis.cc b/paludis/repositories/e/vdb_repository_TEST_eapis.cc
index 9ae972402..9a42781c2 100644
--- a/paludis/repositories/e/vdb_repository_TEST_eapis.cc
+++ b/paludis/repositories/e/vdb_repository_TEST_eapis.cc
@@ -21,7 +21,6 @@
#include <paludis/repositories/e/e_repository.hh>
#include <paludis/repositories/e/spec_tree_pretty_printer.hh>
#include <paludis/environments/test/test_environment.hh>
-#include <paludis/package_database.hh>
#include <paludis/metadata_key.hh>
#include <paludis/util/sequence.hh>
#include <paludis/util/options.hh>
@@ -127,7 +126,7 @@ namespace test_cases
keys->insert("root", stringify(FSPath("vdb_repository_TEST_eapis_dir/root").realpath()));
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);
keys = std::make_shared<Map<std::string, std::string>>();
keys->insert("format", "vdb");
@@ -138,7 +137,7 @@ namespace test_cases
keys->insert("root", stringify(FSPath("vdb_repository_TEST_eapis_dir/root").realpath()));
std::shared_ptr<Repository> vdb_repo(VDBRepository::VDBRepository::repository_factory_create(&env,
std::bind(from_keys, keys, std::placeholders::_1)));
- env.package_database()->add_repository(0, vdb_repo);
+ env.add_repository(0, vdb_repo);
InstallAction install_action(make_named_values<InstallActionOptions>(
n::destination() = vdb_repo,
@@ -256,7 +255,7 @@ namespace test_cases
keys->insert("root", stringify(FSPath("vdb_repository_TEST_eapis_dir/root").realpath()));
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);
keys = std::make_shared<Map<std::string, std::string>>();
keys->insert("format", "vdb");
@@ -267,7 +266,7 @@ namespace test_cases
keys->insert("root", stringify(FSPath("vdb_repository_TEST_eapis_dir/root").realpath()));
std::shared_ptr<Repository> vdb_repo(VDBRepository::VDBRepository::repository_factory_create(&env,
std::bind(from_keys, keys, std::placeholders::_1)));
- env.package_database()->add_repository(0, vdb_repo);
+ env.add_repository(0, vdb_repo);
InstallAction install_action(make_named_values<InstallActionOptions>(
n::destination() = vdb_repo,