Patchwork [bitbake-devel,1/1] fetch2/ let try_mirror_url return correct value

mail settings
Submitter Robert Yang
Date Dec. 25, 2013, 4:01 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/63727/
State New
Headers show


Robert Yang - Dec. 25, 2013, 4:01 p.m.
The fetcher will try:

2) Upstream

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]

Signed-off-by: Robert Yang <>
 bitbake/lib/bb/fetch2/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/bitbake/lib/bb/fetch2/ b/bitbake/lib/bb/fetch2/
index 8fdf59c..f93668f 100644
--- a/bitbake/lib/bb/fetch2/
+++ b/bitbake/lib/bb/fetch2/
@@ -810,7 +810,7 @@  def try_mirror_url(origud, ud, ld, check = False):
       , ld)
                 if hasattr(ud.method,"build_mirror_data"):
                     origud.method.build_mirror_data(origud, ld)
-            return None
+            return ud.localpath
         # Otherwise the result is a local file:// and we symlink to it
         if not os.path.exists(origud.localpath):
             if os.path.islink(origud.localpath):