diff options
| author | Richard Purdie <rpurdie@rpsys.net> | 2008-10-22 22:24:03 +0100 |
|---|---|---|
| committer | Richard Purdie <rpurdie@rpsys.net> | 2008-10-22 22:24:03 +0100 |
| commit | ede20a32458a01fbc3da95c82447b49fb2b25a94 (patch) | |
| tree | 20d50c2963e870e808fb746a4d91256d5c3cbee5 /bitbake-dev/lib/bb/fetch/__init__.py | |
| parent | 4329a29db5666adc95388c2cc2ebfacb07a81637 (diff) | |
| download | poky-ede20a32458a01fbc3da95c82447b49fb2b25a94.tar.gz | |
bitbake: Improve proxy variable handling in fetchers
Diffstat (limited to 'bitbake-dev/lib/bb/fetch/__init__.py')
| -rw-r--r-- | bitbake-dev/lib/bb/fetch/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake-dev/lib/bb/fetch/__init__.py b/bitbake-dev/lib/bb/fetch/__init__.py index a4ede2b77f..ab7a9bed92 100644 --- a/bitbake-dev/lib/bb/fetch/__init__.py +++ b/bitbake-dev/lib/bb/fetch/__init__.py | |||
| @@ -465,6 +465,12 @@ class Fetch(object): | |||
| 465 | uri = stash + tarfn | 465 | uri = stash + tarfn |
| 466 | bb.msg.note(1, bb.msg.domain.Fetcher, "fetch " + uri) | 466 | bb.msg.note(1, bb.msg.domain.Fetcher, "fetch " + uri) |
| 467 | fetchcmd = fetchcmd.replace("${URI}", uri) | 467 | fetchcmd = fetchcmd.replace("${URI}", uri) |
| 468 | httpproxy = data.getVar("http_proxy", d, True) | ||
| 469 | ftpproxy = data.getVar("ftp_proxy", d, True) | ||
| 470 | if httpproxy: | ||
| 471 | fetchcmd = "http_proxy=" + httpproxy + " " + fetchcmd | ||
| 472 | if ftpproxy: | ||
| 473 | fetchcmd = "ftp_proxy=" + ftpproxy + " " + fetchcmd | ||
| 468 | ret = os.system(fetchcmd) | 474 | ret = os.system(fetchcmd) |
| 469 | if ret == 0: | 475 | if ret == 0: |
| 470 | bb.msg.note(1, bb.msg.domain.Fetcher, "Fetched %s from tarball stash, skipping checkout" % tarfn) | 476 | bb.msg.note(1, bb.msg.domain.Fetcher, "Fetched %s from tarball stash, skipping checkout" % tarfn) |
