diff options
| -rw-r--r-- | bitbake-dev/lib/bb/fetch/wget.py | 4 | ||||
| -rw-r--r-- | bitbake/lib/bb/fetch/wget.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bitbake-dev/lib/bb/fetch/wget.py b/bitbake-dev/lib/bb/fetch/wget.py index 75357d539b..0008a28700 100644 --- a/bitbake-dev/lib/bb/fetch/wget.py +++ b/bitbake-dev/lib/bb/fetch/wget.py | |||
| @@ -72,14 +72,14 @@ class Wget(Fetch): | |||
| 72 | ftpproxy = None | 72 | ftpproxy = None |
| 73 | if uri_type == 'http': | 73 | if uri_type == 'http': |
| 74 | httpproxy = data.getVar("HTTP_PROXY", d, True) | 74 | httpproxy = data.getVar("HTTP_PROXY", d, True) |
| 75 | httpproxy_ignore = data.getVar("HTTP_PROXY_IGNORE", d, True).split() | 75 | httpproxy_ignore = (data.getVar("HTTP_PROXY_IGNORE", d, True) or "").split() |
| 76 | for p in httpproxy_ignore: | 76 | for p in httpproxy_ignore: |
| 77 | if uri_host.endswith(p): | 77 | if uri_host.endswith(p): |
| 78 | httpproxy = None | 78 | httpproxy = None |
| 79 | break | 79 | break |
| 80 | if uri_type == 'ftp': | 80 | if uri_type == 'ftp': |
| 81 | ftpproxy = data.getVar("FTP_PROXY", d, True) | 81 | ftpproxy = data.getVar("FTP_PROXY", d, True) |
| 82 | ftpproxy_ignore = data.getVar("HTTP_PROXY_IGNORE", d, True).split() | 82 | ftpproxy_ignore = (data.getVar("HTTP_PROXY_IGNORE", d, True) or "").split() |
| 83 | for p in ftpproxy_ignore: | 83 | for p in ftpproxy_ignore: |
| 84 | if uri_host.endswith(p): | 84 | if uri_host.endswith(p): |
| 85 | ftpproxy = None | 85 | ftpproxy = None |
diff --git a/bitbake/lib/bb/fetch/wget.py b/bitbake/lib/bb/fetch/wget.py index 75357d539b..0008a28700 100644 --- a/bitbake/lib/bb/fetch/wget.py +++ b/bitbake/lib/bb/fetch/wget.py | |||
| @@ -72,14 +72,14 @@ class Wget(Fetch): | |||
| 72 | ftpproxy = None | 72 | ftpproxy = None |
| 73 | if uri_type == 'http': | 73 | if uri_type == 'http': |
| 74 | httpproxy = data.getVar("HTTP_PROXY", d, True) | 74 | httpproxy = data.getVar("HTTP_PROXY", d, True) |
| 75 | httpproxy_ignore = data.getVar("HTTP_PROXY_IGNORE", d, True).split() | 75 | httpproxy_ignore = (data.getVar("HTTP_PROXY_IGNORE", d, True) or "").split() |
| 76 | for p in httpproxy_ignore: | 76 | for p in httpproxy_ignore: |
| 77 | if uri_host.endswith(p): | 77 | if uri_host.endswith(p): |
| 78 | httpproxy = None | 78 | httpproxy = None |
| 79 | break | 79 | break |
| 80 | if uri_type == 'ftp': | 80 | if uri_type == 'ftp': |
| 81 | ftpproxy = data.getVar("FTP_PROXY", d, True) | 81 | ftpproxy = data.getVar("FTP_PROXY", d, True) |
| 82 | ftpproxy_ignore = data.getVar("HTTP_PROXY_IGNORE", d, True).split() | 82 | ftpproxy_ignore = (data.getVar("HTTP_PROXY_IGNORE", d, True) or "").split() |
| 83 | for p in ftpproxy_ignore: | 83 | for p in ftpproxy_ignore: |
| 84 | if uri_host.endswith(p): | 84 | if uri_host.endswith(p): |
| 85 | ftpproxy = None | 85 | ftpproxy = None |
