diff options
author | 2009-11-26 22:45:52 +0000 | |
---|---|---|
committer | 2009-12-03 18:02:41 +0000 | |
commit | 5dfee8d314eb529d32554cad212ac69668370a3d (patch) | |
tree | 2ba6bfc4692b781f4297ee88bb2e97c702789652 | |
parent | c1ee270d2cf979c2700157e6c8b19a2c007fe81c (diff) | |
download | poky-5dfee8d314eb529d32554cad212ac69668370a3d.tar.gz poky-5dfee8d314eb529d32554cad212ac69668370a3d.tar.bz2 poky-5dfee8d314eb529d32554cad212ac69668370a3d.zip |
bitbake: Fix dict changing size problems
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r-- | bitbake/lib/bb/fetch/__init__.py | 8 |
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: |