From ede20a32458a01fbc3da95c82447b49fb2b25a94 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 22 Oct 2008 22:24:03 +0100 Subject: bitbake: Improve proxy variable handling in fetchers --- bitbake-dev/lib/bb/fetch/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bitbake-dev/lib/bb/fetch/__init__.py') 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): uri = stash + tarfn bb.msg.note(1, bb.msg.domain.Fetcher, "fetch " + uri) fetchcmd = fetchcmd.replace("${URI}", uri) + httpproxy = data.getVar("http_proxy", d, True) + ftpproxy = data.getVar("ftp_proxy", d, True) + if httpproxy: + fetchcmd = "http_proxy=" + httpproxy + " " + fetchcmd + if ftpproxy: + fetchcmd = "ftp_proxy=" + ftpproxy + " " + fetchcmd ret = os.system(fetchcmd) if ret == 0: bb.msg.note(1, bb.msg.domain.Fetcher, "Fetched %s from tarball stash, skipping checkout" % tarfn) -- cgit v1.2.3-54-g00ecf