diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-02-04 14:08:34 +0000 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2010-02-04 14:08:34 +0000 |
commit | c9fd126f64ec57cc0799ad03f32f509b5266e0ff (patch) | |
tree | 5a02620dde4f8f37f4f3712a8acd1e3d8d78aa6e /bitbake/lib | |
parent | 72495b5f3743b79f9c82fd6b8ffba865fa3031da (diff) | |
download | openembedded-core-c9fd126f64ec57cc0799ad03f32f509b5266e0ff.tar.gz openembedded-core-c9fd126f64ec57cc0799ad03f32f509b5266e0ff.tar.bz2 openembedded-core-c9fd126f64ec57cc0799ad03f32f509b5266e0ff.tar.xz openembedded-core-c9fd126f64ec57cc0799ad03f32f509b5266e0ff.zip |
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 <josh@linux.intel.com>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/fetch/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index 6bce941fc..58fa41b4d 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): |