aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-08-25 16:14:11 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-08-25 16:14:11 +0000
commit2a941c492ade7cca795fcf1de27797ca1ba0387f (patch)
tree3a57c8179ab71d6107535494818c4b8d3c98facb
parentbe5bf50ec7e36a41407fe260d1ebba753c754580 (diff)
downloadpaludis-2a941c492ade7cca795fcf1de27797ca1ba0387f.tar.gz
paludis-2a941c492ade7cca795fcf1de27797ca1ba0387f.tar.xz
Support virtuals in QA environment
-rw-r--r--paludis/qa/qa_environment.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/paludis/qa/qa_environment.cc b/paludis/qa/qa_environment.cc
index 6455116..8c59c91 100644
--- a/paludis/qa/qa_environment.cc
+++ b/paludis/qa/qa_environment.cc
@@ -62,6 +62,9 @@ namespace paludis
continue;
}
+ PackageDatabase::Pointer db(new PackageDatabase(env));
+
+ /* create our portage repository */
AssociativeCollection<std::string, std::string>::Pointer keys(
new AssociativeCollection<std::string, std::string>::Concrete);
@@ -71,10 +74,14 @@ namespace paludis
keys->insert("cache", "/var/empty");
keys->insert("profiles", stringify(base / "profiles" / tokens.at(1)));
- PackageDatabase::Pointer db(new PackageDatabase(env));
db->add_repository(RepositoryMaker::get_instance()->find_maker("portage")(env,
db.raw_pointer(), keys));
+ /* create our virtuals repository */
+ db->add_repository(RepositoryMaker::get_instance()->find_maker("virtuals")(env,
+ db.raw_pointer(), AssociativeCollection<std::string, std::string>::Pointer(0)));
+
+ /* make the entry */
package_databases.push_back(PackageDatabasesEntry(PackageDatabasesEntry::create()
.arch(UseFlagName(tokens.at(0)))
.location(base / "profiles" / tokens.at(1))