summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch/__init__.py
diff options
context:
space:
mode:
authorRyan Phillips <ryan_d_phillips@dell.com>2010-06-08 14:20:55 -0500
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-02 15:41:36 +0100
commit40d7de8f06d789983ce060287f7517a440f1682c (patch)
tree541c8b6d8983c51f4a9fe43b3dc7c0c7421f60ab /bitbake/lib/bb/fetch/__init__.py
parent88a257634a7a681d711e4401a7109d8742e9a166 (diff)
downloadpoky-40d7de8f06d789983ce060287f7517a440f1682c.tar.gz
Change wget fetcher to use the runfetchcmd
* Fixes proxy support to honor standard proxy environment variables. * Quote environment variables (Bitbake rev: f84f382f340d6db15b9e5afb8c7c93969249a958) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/fetch/__init__.py')
-rw-r--r--bitbake/lib/bb/fetch/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py
index 701e79025a..6478f5acaa 100644
--- a/bitbake/lib/bb/fetch/__init__.py
+++ b/bitbake/lib/bb/fetch/__init__.py
@@ -204,6 +204,7 @@ def fetcher_compare_revisons(d):
204 204
205def init(urls, d, setup = True): 205def init(urls, d, setup = True):
206 urldata = {} 206 urldata = {}
207
207 fn = bb.data.getVar('FILE', d, 1) 208 fn = bb.data.getVar('FILE', d, 1)
208 if fn in urldata_cache: 209 if fn in urldata_cache:
209 urldata = urldata_cache[fn] 210 urldata = urldata_cache[fn]
@@ -400,7 +401,7 @@ def runfetchcmd(cmd, d, quiet = False):
400 for var in exportvars: 401 for var in exportvars:
401 val = data.getVar(var, d, True) 402 val = data.getVar(var, d, True)
402 if val: 403 if val:
403 cmd = 'export ' + var + '=%s; %s' % (val, cmd) 404 cmd = 'export ' + var + '=\"%s\"; %s' % (val, cmd)
404 405
405 bb.msg.debug(1, bb.msg.domain.Fetcher, "Running %s" % cmd) 406 bb.msg.debug(1, bb.msg.domain.Fetcher, "Running %s" % cmd)
406 407