All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sanity.bbclass: Increased verbosity for connectivity check
@ 2015-05-13 11:26 mariano.lopez
  0 siblings, 0 replies; 3+ messages in thread
From: mariano.lopez @ 2015-05-13 11:26 UTC (permalink / raw)
  To: openembedded-core

From: Mariano Lopez <mariano.lopez@linux.intel.com>

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: Mariano Lopez <mariano.lopez@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 f8b9fac..d601e91 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



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] sanity.bbclass: Increased verbosity for connectivity check
@ 2015-04-27 16:12 Mariano Lopez
  0 siblings, 0 replies; 3+ messages in thread
From: Mariano Lopez @ 2015-04-27 16:12 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1358 bytes --]

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.

Please disregard previous patch with the same topic.

[YOCTO #7592]

Signed-off-by: Mariano Lopez <mariano.lopez@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


[-- Attachment #2: Type: text/html, Size: 2535 bytes --]

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] sanity.bbclass: Increased verbosity for connectivity check
@ 2015-04-22 22:17 Mariano Lopez
  0 siblings, 0 replies; 3+ messages in thread
From: Mariano Lopez @ 2015-04-22 22:17 UTC (permalink / raw)
  To: openembedded-core

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@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



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-13 19:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-13 11:26 [PATCH] sanity.bbclass: Increased verbosity for connectivity check mariano.lopez
  -- strict thread matches above, loose matches on Subject: below --
2015-04-27 16:12 Mariano Lopez
2015-04-22 22:17 Mariano Lopez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.