[bitbake-devel] [PATCH 1/1] fetcher2: show warning message when checksum is mismatch

Yu Ke ke.yu at intel.com
Tue Aug 9 09:17:00 UTC 2011


Currently, if checksum mismatch, fetcher will try mirror,
and if mirror fetching fail, it will show error "Unable
to fetch URL xxx from from any source" which actually
hide the real reason and make user confuse.

so showing warning message will make it more clear.

Fix [YOCTO #1256]

Signed-off-by: Yu Ke <ke.yu at intel.com>
---
 lib/bb/fetch2/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index 9cfa3de..b691cbc 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -937,7 +937,7 @@ class Fetch(object):
                         raise
 
                     except BBFetchException as e:
-                        logger.debug(1, str(e))
+                        logger.warn(str(e))
                         # Remove any incomplete fetch
                         if os.path.isfile(ud.localpath):
                             bb.utils.remove(ud.localpath)
-- 
1.7.0.4





More information about the bitbake-devel mailing list