summaryrefslogtreecommitdiffstats
path: root/pym/portage/data.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/data.py')
-rw-r--r--pym/portage/data.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pym/portage/data.py b/pym/portage/data.py
index 53af6b966..7c1733445 100644
--- a/pym/portage/data.py
+++ b/pym/portage/data.py
@@ -169,13 +169,14 @@ def _init(settings):
initialize global variables. This allows settings to come from make.conf
instead of requiring them to be set in the calling environment.
"""
- if '_portage_grpname' not in _initialized_globals:
+ if '_portage_grpname' not in _initialized_globals and \
+ '_portage_uname' not in _initialized_globals:
+
v = settings.get('PORTAGE_GRPNAME')
if v is not None:
globals()['_portage_grpname'] = v
_initialized_globals.add('_portage_grpname')
- if '_portage_uname' not in _initialized_globals:
v = settings.get('PORTAGE_USERNAME')
if v is not None:
globals()['_portage_uname'] = v