bitbake: fetch2/__init__.py: let try_mirror_url return correct value
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 25 Dec 2013 16:01:26 +0000 (00:01 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 19 Jan 2014 13:06:21 +0000 (13:06 +0000)
commit8c5e5d336a798b41cbf15dd9450327049a9413bc
tree2ab1a73ae84e4473dcd4bf8797044f4c66a81469
parent1b3c2e9b246f533a7aab5fd4a17b9a42c2b97dd4
bitbake: fetch2/__init__.py: let try_mirror_url return correct value

The fetcher will try:

1) PREMIRROR
2) Upstream
3) MIRROR

If it fails to download from the Upstream, but succeeds from the MIRROR,
and ud.localpath != origud.localpath (for example, the git tarball),
then we will get the error (e.g.: xf86-video-omapfb):

ERROR: Function failed: Fetcher failure for URL: 'xxx'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /path/to/log.do_fetch.28024

It should not show the error and let the build go on since it succeeds.
(e.g.: xf86-video-omapfb)

[YOCTO #5686]

(Bitbake rev: c08ca1e4eeb04f78e1354780cf5a4c3855e49572)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/fetch2/__init__.py