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

Submitted by Paul Eggleton on Jan. 11, 2012, 6:30 p.m. | Patch ID: 19091


Message ID f091b69c50ec75e3da81fbd8677116c1377de380.1326306561.git.paul.eggleton@linux.intel.com
State Accepted, archived
Headers show

Commit Message

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 <paul.eggleton@linux.intel.com>
 bitbake/lib/bb/fetch2/__init__.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index b76358d..80cef3f 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -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):