summaryrefslogtreecommitdiffstats
path: root/pym/portage/_legacy_globals.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-12-08 18:54:41 -0800
committerZac Medico <zmedico@gentoo.org>2011-12-08 18:54:41 -0800
commitb9b1c642065220aaf857a6ab221756be60519448 (patch)
tree18e646080655ddcb246459704f3c0324cb9bb4dc /pym/portage/_legacy_globals.py
parent9fd2fbb571fccae2e1f58daeeef348a91023cde5 (diff)
downloadportage-b9b1c642065220aaf857a6ab221756be60519448.tar.gz
portage-b9b1c642065220aaf857a6ab221756be60519448.tar.bz2
portage-b9b1c642065220aaf857a6ab221756be60519448.zip
Enable PORTAGE_GRPNAME/USERNAME in make.conf.
This is handy for prefix installs, since it allows these variables to be set in make.conf rather than having them hardcoded. Eventually, the corresponding portage.data constants may be deprecated in favor of config attributes, since it's conceivable that multiple configurations with different constants could be used simultaneously.
Diffstat (limited to 'pym/portage/_legacy_globals.py')
-rw-r--r--pym/portage/_legacy_globals.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/portage/_legacy_globals.py b/pym/portage/_legacy_globals.py
index f13e95d4b..e818e7e7a 100644
--- a/pym/portage/_legacy_globals.py
+++ b/pym/portage/_legacy_globals.py
@@ -37,6 +37,7 @@ def _get_legacy_global(name):
settings = portage.db[portage.db._target_eroot]["vartree"].settings
portage.output._init(config_root=settings['PORTAGE_CONFIGROOT'])
+ portage.data._init(settings)
portage.settings = settings
constructed.add('settings')