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 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: |