projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62e88e3
)
Fix _get_legacy_global() so that it does't pass in the target_root
author
Zac Medico
<zmedico@gentoo.org>
Fri, 27 Aug 2010 21:57:58 +0000
(14:57 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 27 Aug 2010 21:57:58 +0000
(14:57 -0700)
parameter to create_trees() unless ROOT is set. This is required
for make.conf ROOT override to work with LocationsManager.
pym/portage/_legacy_globals.py
patch
|
blob
|
history
diff --git
a/pym/portage/_legacy_globals.py
b/pym/portage/_legacy_globals.py
index 69484a96bbad498ed90cddd12ff782a41290166b..baabcc2e6f3691e66dee8c062d663c8875430fb3 100644
(file)
--- 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)