summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch/__init__.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py
index a7fc1af0c9..957cca91b4 100644
--- a/bitbake/lib/bb/fetch/__init__.py
+++ b/bitbake/lib/bb/fetch/__init__.py
@@ -153,14 +153,16 @@ def init(urls, d, setup = True):
urldata_cache[fn] = urldata
return urldata
-def go(d):
+def go(d, urls = None):
"""
Fetch all urls
init must have previously been called
"""
- urldata = init([], d, True)
+ if not urls:
+ urls = d.getVar("SRC_URI", 1).split()
+ urldata = init(urls, d, True)
- for u in urldata:
+ for u in urls:
ud = urldata[u]
m = ud.method
if ud.localfile: