diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-11-13 20:10:04 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-11-13 20:10:04 +0800 |
commit | caa7fe2284498560157e2baae918101e561be861 (patch) | |
tree | 5c49710a9e23204a08c1ebd76a2dfcd94e1176e7 /bitbake | |
parent | d6e8f7d8a6a2a0f46a2a92e2f3fa6afd25a39acd (diff) | |
download | openembedded-core-caa7fe2284498560157e2baae918101e561be861.tar.gz openembedded-core-caa7fe2284498560157e2baae918101e561be861.tar.bz2 openembedded-core-caa7fe2284498560157e2baae918101e561be861.tar.xz openembedded-core-caa7fe2284498560157e2baae918101e561be861.zip |
bitbake/fetch: Fix handling of mirrors when checking for url validity
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-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 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): |