summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-11-26 14:04:28 -0800
committerZac Medico <zmedico@gentoo.org>2010-11-26 14:04:28 -0800
commit28a9bddd91a9129cd71db57a34e6048cef1b31e8 (patch)
treeb6e0a263bfc70a678a453d94dd7fc9d4b2033b1d
parentc9b918ed8827f359b2dbe5d2668c420cce76a4b2 (diff)
downloadportage-28a9bddd91a9129cd71db57a34e6048cef1b31e8.tar.gz
portage-28a9bddd91a9129cd71db57a34e6048cef1b31e8.tar.bz2
portage-28a9bddd91a9129cd71db57a34e6048cef1b31e8.zip
whitelist proxy vars and don't save them
-rw-r--r--bin/isolated-functions.sh2
-rw-r--r--pym/portage/package/ebuild/_config/special_env_vars.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index cf258bef3..1403c0aac 100644
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -542,7 +542,7 @@ save_ebuild_env() {
# misc variables inherited from the calling environment
unset COLORTERM DISPLAY EDITOR LESS LESSOPEN LOGNAME LS_COLORS PAGER \
- TERM TERMCAP USER
+ TERM TERMCAP USER ftp_proxy http_proxy no_proxy
# other variables inherited from the calling environment
unset CVS_RSH ECHANGELOG_USER GPG_AGENT_INFO \
diff --git a/pym/portage/package/ebuild/_config/special_env_vars.py b/pym/portage/package/ebuild/_config/special_env_vars.py
index 52b8b3a29..31b10cd22 100644
--- a/pym/portage/package/ebuild/_config/special_env_vars.py
+++ b/pym/portage/package/ebuild/_config/special_env_vars.py
@@ -77,6 +77,7 @@ environ_whitelist += [
"COLORTERM", "DISPLAY", "EDITOR", "LESS",
"LESSOPEN", "LOGNAME", "LS_COLORS", "PAGER",
"TERM", "TERMCAP", "USER",
+ 'ftp_proxy', 'http_proxy', 'no_proxy',
]
# tempdir settings