summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 b8a00107e..7326ed0f4 100644
--- a/bitbake/lib/bb/fetch/__init__.py
+++ b/bitbake/lib/bb/fetch/__init__.py
@@ -147,14 +147,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: