summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-27 14:57:58 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-27 14:57:58 -0700
commitac6de27c09e48372eb5ddfc804e5d97a70e2dd4f (patch)
treeffe377822bca180c9799610f73c5d86a187f1af8
parent62e88e3e97a3518bf46e78593d631b711e990555 (diff)
downloadportage-ac6de27c09e48372eb5ddfc804e5d97a70e2dd4f.tar.gz
portage-ac6de27c09e48372eb5ddfc804e5d97a70e2dd4f.tar.bz2
portage-ac6de27c09e48372eb5ddfc804e5d97a70e2dd4f.zip
Fix _get_legacy_global() so that it does't pass in the target_root
parameter to create_trees() unless ROOT is set. This is required for make.conf ROOT override to work with LocationsManager.
-rw-r--r--pym/portage/_legacy_globals.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/_legacy_globals.py b/pym/portage/_legacy_globals.py
index 69484a96b..baabcc2e6 100644
--- a/pym/portage/_legacy_globals.py
+++ b/pym/portage/_legacy_globals.py
@@ -28,7 +28,7 @@ def _get_legacy_global(name):
kwargs = {}
for k, envvar in (("config_root", "PORTAGE_CONFIGROOT"), ("target_root", "ROOT")):
- kwargs[k] = os.environ.get(envvar, "/")
+ kwargs[k] = os.environ.get(envvar)
portage._initializing_globals = True
portage.db = portage.create_trees(**kwargs)