diff options
-rw-r--r-- | bitbake/lib/bb/fetch/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index a787cb656b..65ac468797 100644 --- a/bitbake/lib/bb/fetch/__init__.py +++ b/bitbake/lib/bb/fetch/__init__.py | |||
@@ -272,10 +272,12 @@ def go(d, urls = None): | |||
272 | try: | 272 | try: |
273 | m.go(u, ud, d) | 273 | m.go(u, ud, d) |
274 | localpath = ud.localpath | 274 | localpath = ud.localpath |
275 | except: | 275 | except FetchError: |
276 | # Finally, try fetching uri, u, from MIRRORS | 276 | # Finally, try fetching uri, u, from MIRRORS |
277 | mirrors = [ i.split() for i in (bb.data.getVar('MIRRORS', d, 1) or "").split('\n') if i ] | 277 | mirrors = [ i.split() for i in (bb.data.getVar('MIRRORS', d, 1) or "").split('\n') if i ] |
278 | localpath = try_mirrors (d, u, mirrors) | 278 | localpath = try_mirrors (d, u, mirrors) |
279 | if not localpath or not os.path.exists(localpath): | ||
280 | raise FetchError("Unable to fetch URL %s from any source." % u) | ||
279 | 281 | ||
280 | if localpath: | 282 | if localpath: |
281 | ud.localpath = localpath | 283 | ud.localpath = localpath |