From: Richard Purdie Date: Thu, 26 Nov 2009 22:45:52 +0000 (+0000) Subject: bitbake: Fix dict changing size problems X-Git-Tag: 2011-1~6645 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=011557c15734a83e8457fdabd6df5016081012c4;p=openembedded-core.git bitbake: Fix dict changing size problems Signed-off-by: Richard Purdie --- 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: