Make create_trees() pass along PORTAGE_GRPNAME and PORTAGE_USERNAME
authorZac Medico <zmedico@gentoo.org>
Sun, 15 Aug 2010 08:12:11 +0000 (01:12 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 15 Aug 2010 08:12:11 +0000 (01:12 -0700)
to all config instances.

pym/portage/__init__.py

index a6760b2450c2ed1ba8a876f3322f917168609dbd..a6534b12df6c9d0dec4eb05c0d57080521847783 100644 (file)
@@ -520,7 +520,7 @@ def create_trees(config_root=None, target_root=None, trees=None):
                # environment to apply to the config that's associated
                # with ROOT != "/", so pass a nearly empty dict for the env parameter.
                clean_env = {}
-               for k in ('PATH', 'TERM'):
+               for k in ('PATH', 'PORTAGE_GRPNAME', 'PORTAGE_USERNAME', 'TERM'):
                        v = settings.get(k)
                        if v is not None:
                                clean_env[k] = v