summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-11-26 04:05:43 +0000
committerZac Medico <zmedico@gentoo.org>2007-11-26 04:05:43 +0000
commit21a1986c22eccf2a40e4a8395b3318928c5c71d8 (patch)
tree6f8df9046968f73ad134a9b5dc5208b7d5353ff6 /pym
parent907118f248fbe778d03a8c39636ce9826d6327b6 (diff)
downloadportage-21a1986c22eccf2a40e4a8395b3318928c5c71d8.tar.gz
portage-21a1986c22eccf2a40e4a8395b3318928c5c71d8.tar.bz2
portage-21a1986c22eccf2a40e4a8395b3318928c5c71d8.zip
Filter more misc environment variables.
svn path=/main/trunk/; revision=8676
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/__init__.py19
1 files changed, 17 insertions, 2 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index a93ead837..28d5eeed5 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -860,7 +860,19 @@ class config(object):
# Filter selected variables in the config.environ() method so that
# they don't needlessly propagate down into the ebuild environment.
- _environ_filter = frozenset(["ACCEPT_KEYWORDS", "AUTOCLEAN",
+ _environ_filter = []
+
+ # misc variables inherited from the calling environment
+ _environ_filter += [
+ "CVS_RSH", "ECHANGELOG_USER",
+ "GPG_AGENT_INFO", "INFOPATH", "MANPATH",
+ "SSH_AGENT_PID", "SSH_AUTH_SOCK",
+ "STY", "WINDOW", "XAUTHORITY",
+ ]
+
+ # portage config variables and variables set directly by portage
+ _environ_filter += [
+ "ACCEPT_KEYWORDS", "AUTOCLEAN",
"CLEAN_DELAY", "COLLISION_IGNORE", "CONFIG_PROTECT",
"CONFIG_PROTECT_MASK", "EMERGE_DEFAULT_OPTS",
"EMERGE_WARNING_DELAY", "FETCHCOMMAND", "FETCHCOMMAND_FTP",
@@ -873,7 +885,10 @@ class config(object):
"PORTAGE_GPG_KEY", "PORTAGE_RSYNC_EXTRA_OPTS", "PORTAGE_RSYNC_OPTS",
"PORTAGE_RSYNC_RETRIES", "PORT_LOGDIR", "QUICKPKG_DEFAULT_OPTS",
"RESUMECOMMAND", "RESUMECOMMAND_HTTP", "RESUMECOMMAND_HTTP",
- "RESUMECOMMAND_SFTP", "SYNC", "USE_EXPAND_HIDDEN", "USE_ORDER"])
+ "RESUMECOMMAND_SFTP", "SYNC", "USE_EXPAND_HIDDEN", "USE_ORDER",
+ ]
+
+ _environ_filter = frozenset(_environ_filter)
def __init__(self, clone=None, mycpv=None, config_profile_path=None,
config_incrementals=None, config_root=None, target_root=None,