diff options
-rw-r--r-- | pym/portage/data.py | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/pym/portage/data.py b/pym/portage/data.py index a25b282ab..cf94ab0cd 100644 --- a/pym/portage/data.py +++ b/pym/portage/data.py @@ -184,12 +184,10 @@ def _init(settings): if '_portage_grpname' not in _initialized_globals and \ '_portage_username' not in _initialized_globals: - v = settings.get('PORTAGE_GRPNAME') - if v is not None: - globals()['_portage_grpname'] = v - _initialized_globals.add('_portage_grpname') - - v = settings.get('PORTAGE_USERNAME') - if v is not None: - globals()['_portage_username'] = v - _initialized_globals.add('_portage_username') + v = settings.get('PORTAGE_GRPNAME', 'portage') + globals()['_portage_grpname'] = v + _initialized_globals.add('_portage_grpname') + + v = settings.get('PORTAGE_USERNAME', 'portage') + globals()['_portage_username'] = v + _initialized_globals.add('_portage_username') |