diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-26 22:45:52 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-26 22:45:52 +0000 |
commit | 011557c15734a83e8457fdabd6df5016081012c4 (patch) | |
tree | f016d12fb007c9b5dbe64756037c54920e7e50c6 /bitbake/lib/bb/fetch | |
parent | 71b10e30459c64f6b5497697cc662bd9ee45b949 (diff) | |
download | poky-011557c15734a83e8457fdabd6df5016081012c4.tar.gz |
bitbake: Fix dict changing size problems
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/fetch')
-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 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): | |||
147 | urldata_cache[fn] = urldata | 147 | urldata_cache[fn] = urldata |
148 | return urldata | 148 | return urldata |
149 | 149 | ||
150 | def go(d): | 150 | def go(d, urls = None): |
151 | """ | 151 | """ |
152 | Fetch all urls | 152 | Fetch all urls |
153 | init must have previously been called | 153 | init must have previously been called |
154 | """ | 154 | """ |
155 | urldata = init([], d, True) | 155 | if not urls: |
156 | urls = d.getVar("SRC_URI", 1).split() | ||
157 | urldata = init(urls, d, True) | ||
156 | 158 | ||
157 | for u in urldata: | 159 | for u in urls: |
158 | ud = urldata[u] | 160 | ud = urldata[u] |
159 | m = ud.method | 161 | m = ud.method |
160 | if ud.localfile: | 162 | if ud.localfile: |