aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-03-30 21:59:05 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-03-30 21:59:05 +0000
commitd840ba2beff7844d1647ca7532a361e25c48e8ec (patch)
tree9c3cc31061c276d283a5ee0de91c7057ff8cbdb9
parent52367689708cd02adfe660e8d2b981204551e906 (diff)
downloadpaludis-d840ba2beff7844d1647ca7532a361e25c48e8ec.tar.gz
paludis-d840ba2beff7844d1647ca7532a361e25c48e8ec.tar.xz
More PortageEnvironment work
-rw-r--r--paludis/environments/portage/portage_environment.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/paludis/environments/portage/portage_environment.cc b/paludis/environments/portage/portage_environment.cc
index fb1dc8b..ff03052 100644
--- a/paludis/environments/portage/portage_environment.cc
+++ b/paludis/environments/portage/portage_environment.cc
@@ -396,6 +396,10 @@ PortageEnvironment::_add_vdb_repository()
keys->insert("names_cache", "/var/empty");
keys->insert("provides_cache", "/var/empty");
keys->insert("world", "/var/lib/portage/world");
+ std::string buildroot(_imp->vars->get("PORTAGE_TMPDIR"));
+ if (! buildroot.empty())
+ buildroot.append("/portage");
+ keys->insert("buildroot", buildroot);
package_database()->add_repository(1,
RepositoryMaker::get_instance()->find_maker("vdb")(this, keys));
}