diff options
-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): | |||
153 | urldata_cache[fn] = urldata | 153 | urldata_cache[fn] = urldata |
154 | return urldata | 154 | return urldata |
155 | 155 | ||
156 | def go(d): | 156 | def go(d, urls = None): |
157 | """ | 157 | """ |
158 | Fetch all urls | 158 | Fetch all urls |
159 | init must have previously been called | 159 | init must have previously been called |
160 | """ | 160 | """ |
161 | urldata = init([], d, True) | 161 | if not urls: |
162 | urls = d.getVar("SRC_URI", 1).split() | ||
163 | urldata = init(urls, d, True) | ||
162 | 164 | ||
163 | for u in urldata: | 165 | for u in urls: |
164 | ud = urldata[u] | 166 | ud = urldata[u] |
165 | m = ud.method | 167 | m = ud.method |
166 | if ud.localfile: | 168 | if ud.localfile: |