create_trees: whitelist SSH_AGENT_PID/AUTH_SOCK
This variables can be used for fetching from binhost.
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 4731db5..374d077 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -517,7 +517,8 @@
# 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: