diff options
| -rw-r--r-- | bitbake/lib/bb/fetch/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index 8cf44d88f4..6c2cc73fb5 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): | |||
| 468 | 468 | ||
| 469 | try: | 469 | try: |
| 470 | if check: | 470 | if check: |
| 471 | ud.method.checkstatus(newuri, ud, ld) | 471 | found = ud.method.checkstatus(newuri, ud, ld) |
| 472 | if found: | ||
| 473 | return found | ||
| 472 | else: | 474 | else: |
| 473 | ud.method.go(newuri, ud, ld) | 475 | ud.method.go(newuri, ud, ld) |
| 474 | return ud.localpath | 476 | return ud.localpath |
| 475 | except (bb.fetch.MissingParameterError, | 477 | except (bb.fetch.MissingParameterError, |
| 476 | bb.fetch.FetchError, | 478 | bb.fetch.FetchError, |
| 477 | bb.fetch.MD5SumError): | 479 | bb.fetch.MD5SumError): |
