create_trees: whitelist SSH_AGENT_PID/AUTH_SOCK v2.1.9.28
authorZac Medico <zmedico@gentoo.org>
Mon, 3 Jan 2011 00:15:45 +0000 (16:15 -0800)
committerZac Medico <zmedico@gentoo.org>
Mon, 3 Jan 2011 00:18:41 +0000 (16:18 -0800)
This variables can be used for fetching from binhost.

pym/portage/__init__.py

index 4731db506e5a4799cb720f6ea69ec03b0bdc527f..374d077f14c8385415ce9fef750bce5e9733c516 100644 (file)
@@ -517,7 +517,8 @@ 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', 'PORTAGE_GRPNAME', 'PORTAGE_USERNAME', 'TERM',
+               for k in ('PATH', 'PORTAGE_GRPNAME', 'PORTAGE_USERNAME',
+                       'SSH_AGENT_PID', 'SSH_AUTH_SOCK', 'TERM',
                        'ftp_proxy', 'http_proxy', 'no_proxy'):
                        v = settings.get(k)
                        if v is not None: