From 1d65af155751885cf2a84df586b8a28e21cd9078 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Thu, 4 Feb 2010 14:08:34 +0000 Subject: 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. (From Poky rev: c9fd126f64ec57cc0799ad03f32f509b5266e0ff) Signed-off-by: Joshua Lock Signed-off-by: Richard Purdie --- lib/bb/fetch/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/bb/fetch/__init__.py') diff --git a/lib/bb/fetch/__init__.py b/lib/bb/fetch/__init__.py index 6bce941fc..58fa41b4d 100644 --- a/lib/bb/fetch/__init__.py +++ b/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): -- cgit 1.2.3-korg