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 | poky-c9fd126f64ec57cc0799ad03f32f509b5266e0ff.tar.gz | |
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 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): | |||
| 383 | import sys | 383 | import sys |
| 384 | (type, value, traceback) = sys.exc_info() | 384 | (type, value, traceback) = sys.exc_info() |
| 385 | bb.msg.debug(2, bb.msg.domain.Fetcher, "Mirror fetch failure: %s" % value) | 385 | bb.msg.debug(2, bb.msg.domain.Fetcher, "Mirror fetch failure: %s" % value) |
| 386 | return "" | 386 | continue |
| 387 | return None | ||
| 387 | 388 | ||
| 388 | 389 | ||
| 389 | class FetchData(object): | 390 | class FetchData(object): |
