aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/exndbam_repository_TEST.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-08-11 12:47:15 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-08-11 19:18:14 +0100
commit59ebf547d0096912cc7b1110926300cd5d227640 (patch)
tree520b6fcb711b07f36a6748e603a49461531f6bcf /paludis/repositories/e/exndbam_repository_TEST.cc
parent8cf3a9dca43a6799a15d749b266e070525e7a46b (diff)
downloadpaludis-59ebf547d0096912cc7b1110926300cd5d227640.tar.gz
paludis-59ebf547d0096912cc7b1110926300cd5d227640.tar.xz
Replace RepositoryMaker with a more flexible RepositoryFactory.
Diffstat (limited to 'paludis/repositories/e/exndbam_repository_TEST.cc')
-rw-r--r--paludis/repositories/e/exndbam_repository_TEST.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/paludis/repositories/e/exndbam_repository_TEST.cc b/paludis/repositories/e/exndbam_repository_TEST.cc
index 09c01bb13..bdc8476b7 100644
--- a/paludis/repositories/e/exndbam_repository_TEST.cc
+++ b/paludis/repositories/e/exndbam_repository_TEST.cc
@@ -19,7 +19,6 @@
#include <paludis/repositories/e/e_repository.hh>
#include <paludis/repositories/e/exndbam_repository.hh>
-#include <paludis/repositories/e/make_ebuild_repository.hh>
#include <paludis/environments/test/test_environment.hh>
#include <paludis/util/wrapped_forward_iterator.hh>
#include <paludis/util/indirect_iterator-impl.hh>
@@ -62,7 +61,7 @@ namespace test_cases
std::tr1::shared_ptr<Map<std::string, std::string> > keys(new Map<std::string, std::string>);
keys->insert("format", "exndbam");
keys->insert("location", "exndbam_repository_TEST_dir/repo1");
- std::tr1::shared_ptr<Repository> repo(ExndbamRepository::make_exndbam_repository(&env,
+ std::tr1::shared_ptr<Repository> repo(ExndbamRepository::ExndbamRepository::repository_factory_create(&env,
std::tr1::bind(from_keys, keys, std::tr1::placeholders::_1)));
TEST_CHECK_STRINGIFY_EQUAL(repo->name(), "installed");
}
@@ -98,7 +97,7 @@ namespace test_cases
keys->insert("distdir", stringify(FSEntry::cwd() / "exndbam_repository_TEST_dir" / "distdir"));
keys->insert("builddir", stringify(FSEntry::cwd() / "exndbam_repository_TEST_dir" / "build"));
keys->insert("root", stringify(FSEntry("exndbam_repository_TEST_dir/root").realpath()));
- std::tr1::shared_ptr<ERepository> repo1(make_ebuild_repository(&env,
+ std::tr1::shared_ptr<Repository> repo1(ERepository::repository_factory_create(&env,
std::tr1::bind(from_keys, keys, std::tr1::placeholders::_1)));
env.package_database()->add_repository(1, repo1);
@@ -107,7 +106,7 @@ namespace test_cases
keys->insert("location", "exndbam_repository_TEST_dir/postinsttest");
keys->insert("builddir", stringify(FSEntry::cwd() / "exndbam_repository_TEST_dir" / "build"));
keys->insert("root", stringify(FSEntry("exndbam_repository_TEST_dir/root").realpath()));
- std::tr1::shared_ptr<Repository> exndbam_repo(ExndbamRepository::make_exndbam_repository(&env,
+ std::tr1::shared_ptr<Repository> exndbam_repo(ExndbamRepository::ExndbamRepository::repository_factory_create(&env,
std::tr1::bind(from_keys, keys, std::tr1::placeholders::_1)));
env.package_database()->add_repository(0, exndbam_repo);