summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb/fetch
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch')
-rw-r--r--bitbake/lib/bb/fetch/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py
index 8cf44d88f..6c2cc73fb 100644
--- a/bitbake/lib/bb/fetch/__init__.py
+++ b/bitbake/lib/bb/fetch/__init__.py
@@ -468,10 +468,12 @@ def try_mirrors(d, uri, mirrors, check = False, force = False):
try:
if check:
- ud.method.checkstatus(newuri, ud, ld)
+ found = ud.method.checkstatus(newuri, ud, ld)
+ if found:
+ return found
else:
ud.method.go(newuri, ud, ld)
- return ud.localpath
+ return ud.localpath
except (bb.fetch.MissingParameterError,
bb.fetch.FetchError,
bb.fetch.MD5SumError):