Patchwork [bitbake-devel,3/4] bitbake: make warning for initial fetch failure one line

mail settings
Submitter Paul Eggleton
Date Jan. 11, 2012, 6:30 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/19091/
State New
Headers show


Paul Eggleton - Jan. 11, 2012, 6:30 p.m.
Instead of printing the full fetch command and output for the initial
fetch failure, just print a one-liner containing the URL. If the user
needs more detail the full version is still output as a debug message
which will go into the log.

Signed-off-by: Paul Eggleton <>
 bitbake/lib/bb/fetch2/ |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/bitbake/lib/bb/fetch2/ b/bitbake/lib/bb/fetch2/
index b76358d..80cef3f 100644
--- a/bitbake/lib/bb/fetch2/
+++ b/bitbake/lib/bb/fetch2/
@@ -977,7 +977,8 @@  class Fetch(object):
                     except BBFetchException as e:
-                        logger.warn(str(e))
+                        logger.warn('Failed to fetch URL %s' % u)
+                        logger.debug(1, str(e))
                         # Remove any incomplete fetch
                         if os.path.isfile(ud.localpath):