Skip to contentSkip to conversation

fetcher2 debug message fix for Yocto bug 1256

PATCH Applied Yu Ke 2 participants 3 messages Aug 9, 2011 – Aug 10, 2011

lore
Share & tools
lore

Yu Ke

author
#0 lore raw

cover fetcher2 debug message fix for Yocto bug 1256

The following changes since commit 5cacdc4f1641eda1b5707c96f7c40924a9db6174:
Joshua Lock (1):
bb/cooker: mark parsed conf files as potential cache invalidators

are available in the git repository at:

git://git.pokylinux.org/poky-contrib kyu3/bug-1256
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kyu3/bug-1256

Yu Ke (1):
fetcher2: show warning message when checksum is mismatch

 lib/bb/fetch2/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
author
#1 lore raw

PATCH 1/1 fetcher2: show warning message when checksum is mismatch

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]

---
 lib/bb/fetch2/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/bb/fetch2/__init__.py +1 -1
index 9cfa3de..b691cbc 100644
@@ -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)
Signature · 1 line
1.7.0.4
#2 lore raw

Re: [PATCH 1/1] fetcher2: show warning message when checksum is mismatch

Quoted 10 lines · Yu Ke

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]

Merged to master, thanks.

Richard