summaryrefslogtreecommitdiff
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-11-26 22:45:52 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-11-26 22:45:52 +0000
commit011557c15734a83e8457fdabd6df5016081012c4 (patch)
treef016d12fb007c9b5dbe64756037c54920e7e50c6 /bitbake/lib
parent71b10e30459c64f6b5497697cc662bd9ee45b949 (diff)
downloadopenembedded-core-011557c15734a83e8457fdabd6df5016081012c4.tar.gz
openembedded-core-011557c15734a83e8457fdabd6df5016081012c4.tar.bz2
openembedded-core-011557c15734a83e8457fdabd6df5016081012c4.zip
bitbake: Fix dict changing size problems
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib')
-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 b8a00107e2..7326ed0f46 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: