From: Joshua Lock Date: Thu, 4 Feb 2010 14:08:34 +0000 (+0000) Subject: bitbake: Fix try_mirrors() logic, was only trying the first mirror. X-Git-Tag: 2011-1~6292 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=c9fd126f64ec57cc0799ad03f32f509b5266e0ff;p=openembedded-core.git bitbake: Fix try_mirrors() logic, was only trying the first mirror. The logic in try_mirrors() was buggy such that only the first entry in the mirrors list was tried. This patch fixes this. Thanks to Richard for the review. Signed-off-by: Joshua Lock --- diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index 6bce941fcb..58fa41b4dc 100644 --- a/bitbake/lib/bb/fetch/__init__.py +++ b/bitbake/lib/bb/fetch/__init__.py @@ -383,7 +383,8 @@ def try_mirrors(d, uri, mirrors): import sys (type, value, traceback) = sys.exc_info() bb.msg.debug(2, bb.msg.domain.Fetcher, "Mirror fetch failure: %s" % value) - return "" + continue + return None class FetchData(object):