diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-08-27 14:57:58 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-08-27 14:57:58 -0700 |
commit | ac6de27c09e48372eb5ddfc804e5d97a70e2dd4f (patch) | |
tree | ffe377822bca180c9799610f73c5d86a187f1af8 | |
parent | 62e88e3e97a3518bf46e78593d631b711e990555 (diff) | |
download | portage-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.py | 2 |
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) |