summaryrefslogtreecommitdiffstats
path: root/pym/_emerge
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/_emerge
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/_emerge')
-rw-r--r--pym/_emerge/actions.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index 87610a693..2849598d3 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -2997,6 +2997,7 @@ def load_emerge_config(trees=None):
mtimedbfile = os.path.join(settings['EROOT'], portage.CACHE_PATH, "mtimedb")
mtimedb = portage.MtimeDB(mtimedbfile)
portage.output._init(config_root=settings['PORTAGE_CONFIGROOT'])
+ portage.data._init(settings)
QueryCommand._db = trees
return settings, trees, mtimedb