<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 12px;" lang="x-unicode">The connectivity sanity error
doesn't tell you which URL failed to fetch nor how it failed.
<br>
<br>
This provides the URL that failed and why it failed using
BBFetchException messages during the connectivity check.<br>
<br>
Please disregard previous patch with the same topic.<br>
<br>
[YOCTO #7592]
<br>
<br>
Signed-off-by: Mariano Lopez <a class="moz-txt-link-rfc2396E"
href="mailto:mariano.lopez@linux.intel.com"><mariano.lopez@linux.intel.com></a>
<br>
---
<br>
meta/classes/sanity.bbclass | 4 ++--
<br>
1 file changed, 2 insertions(+), 2 deletions(-)
<br>
<br>
diff --git a/meta/classes/sanity.bbclass
b/meta/classes/sanity.bbclass
<br>
index cca39c9..f7e8212 100644
<br>
--- a/meta/classes/sanity.bbclass
<br>
+++ b/meta/classes/sanity.bbclass
<br>
@@ -278,12 +278,12 @@ def check_connectivity(d):
<br>
try:
<br>
fetcher = bb.fetch2.Fetch(test_uris, data)
<br>
fetcher.checkstatus()
<br>
- except Exception:
<br>
+ except Exception as err:
<br>
# Allow the message to be configured so that users
can be
<br>
# pointed to a support mechanism.
<br>
msg = data.getVar('CONNECTIVITY_CHECK_MSG', True) or
""
<br>
if len(msg) == 0:
<br>
- msg = "Failed to fetch test data from the
network. Please ensure your network is configured correctly.\n"
<br>
+ msg = '%s. Please ensure your network is
configured correctly.\n' % err
<br>
retval = msg
<br>
<br>
return retval
<br>
<div class="moz-txt-sig"><span class="moz-txt-tag">-- <br>
</span>1.8.4.5
<br>
<br>
</div>
</div>
</body>
</html>