diff options
Diffstat (limited to 'bitbake/lib/bb/fetch/__init__.py')
-rw-r--r-- | bitbake/lib/bb/fetch/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index a4ede2b77f..ab7a9bed92 100644 --- a/bitbake/lib/bb/fetch/__init__.py +++ b/bitbake/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) |