From 6c82baddfe66645054acf5d082cc04137e8a60ca Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 15 Aug 2010 00:57:30 -0700 Subject: Pass along PORTAGE_USERNAME and PORTAGE_GRPNAME inside _load_config() since since they need to be inherited by ebuild subprocesses. --- pym/portage/tests/resolver/ResolverPlayground.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pym') diff --git a/pym/portage/tests/resolver/ResolverPlayground.py b/pym/portage/tests/resolver/ResolverPlayground.py index effeb41f7..64cd6f1db 100644 --- a/pym/portage/tests/resolver/ResolverPlayground.py +++ b/pym/portage/tests/resolver/ResolverPlayground.py @@ -198,11 +198,15 @@ class ResolverPlayground(object): f.close() def _load_config(self): + # Pass along PORTAGE_USERNAME and PORTAGE_GRPNAME since they + # need to be inherited by ebuild subprocesses. env = { "ACCEPT_KEYWORDS": "x86", "PORTDIR": self.portdir, "ROOT": self.root, - 'PORTAGE_TMPDIR' : os.path.join(self.root, 'var/tmp') + 'PORTAGE_TMPDIR' : os.path.join(self.root, 'var/tmp'), + 'PORTAGE_USERNAME' : os.environ["PORTAGE_USERNAME"], + 'PORTAGE_GRPNAME' : os.environ["PORTAGE_GRPNAME"], } settings = config(config_root=self.root, target_root=self.root, env=env) -- cgit v1.2.3-1-g7c22