summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorDarren Hart <dvhart@linux.intel.com>2013-02-05 14:52:44 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-06 13:13:01 +0000
commit3863dfce62331ca0c2844460e2c72569eb7fcaaf (patch)
treefcb899328deca86427b7c172545c8d64de48cc82 /bitbake
parent6fecb1a3e02a91b4945f1d3e5faf72e9c129e833 (diff)
downloadpoky-3863dfce62331ca0c2844460e2c72569eb7fcaaf.tar.gz
bitbake: fetch2: Export upper and lower case environment variables
Applications are inconsistent in their use of upper and lower case proxy variables. Curl, for example, specifies NO_PROXY (not no_proxy) in the man page (changed in 2009 [1]). Avoid proxy issues by ensuring both the upper and lower case versions of each proxy variable is available in the environment for the fetcher commands. Add FTPS_PROXY and ftps_proxy to the list as well. 1. http://curl.haxx.se/mail/tracker-2009-04/0012.html (Bitbake rev: c3e6b2c5ec81d5ad7dcf606fff16fd5552bd267c) Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index cba45d0a4e..7466a381b5 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -459,8 +459,13 @@ def runfetchcmd(cmd, d, quiet = False, cleanup = []):
459 # Also include some other variables. 459 # Also include some other variables.
460 # FIXME: Should really include all export varaiables? 460 # FIXME: Should really include all export varaiables?
461 exportvars = ['PATH', 'GIT_PROXY_COMMAND', 'GIT_PROXY_HOST', 461 exportvars = ['PATH', 'GIT_PROXY_COMMAND', 'GIT_PROXY_HOST',
462 'GIT_PROXY_PORT', 'GIT_CONFIG', 'http_proxy', 'ftp_proxy', 462 'GIT_PROXY_PORT', 'GIT_CONFIG',
463 'https_proxy', 'no_proxy', 'ALL_PROXY', 'all_proxy', 463 'HTTP_PROXY', 'http_proxy',
464 'HTTPS_PROXY', 'https_proxy',
465 'FTP_PROXY', 'ftp_proxy',
466 'FTPS_PROXY', 'ftps_proxy',
467 'NO_PROXY', 'no_proxy',
468 'ALL_PROXY', 'all_proxy',
464 'SSH_AUTH_SOCK', 'SSH_AGENT_PID', 'HOME', 469 'SSH_AUTH_SOCK', 'SSH_AGENT_PID', 'HOME',
465 'GIT_PROXY_IGNORE', 'SOCKS5_USER', 'SOCKS5_PASSWD'] 470 'GIT_PROXY_IGNORE', 'SOCKS5_USER', 'SOCKS5_PASSWD']
466 471