[OE-core] [PATCH] sanity.bbclass: Increased verbosity for connectivity check

Mariano Lopez mariano.lopez at linux.intel.com
Wed Apr 22 22:17:06 UTC 2015


The connectivity sanity error doesn't tell you which URL failed to fetch 
nor how it failed.

This provides the URL that failed and why it failed using 
BBFetchException messages during the connectivity check.

[YOCTO #7592]

Signed-off-by: mlopezva <mariano.lopez at linux.intel.com>
---
  meta/classes/sanity.bbclass | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index cca39c9..f7e8212 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -278,12 +278,12 @@ def check_connectivity(d):
          try:
              fetcher = bb.fetch2.Fetch(test_uris, data)
              fetcher.checkstatus()
-        except Exception:
+        except Exception as err:
              # Allow the message to be configured so that users can be
              # pointed to a support mechanism.
              msg = data.getVar('CONNECTIVITY_CHECK_MSG', True) or ""
              if len(msg) == 0:
-                msg = "Failed to fetch test data from the network. 
Please ensure your network is configured correctly.\n"
+                msg = '%s. Please ensure your network is configured 
correctly.\n' % err
              retval = msg

      return retval
-- 
1.8.4.5




More information about the Openembedded-core mailing list