Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] Quieten network connectivity check
@ 2011-07-13  2:24 Joshua Lock
  2011-07-13  2:24 ` [PATCH 1/1] sanity: don't warn about SRC_URI checksums for connectivity test uris Joshua Lock
  0 siblings, 1 reply; 2+ messages in thread
From: Joshua Lock @ 2011-07-13  2:24 UTC (permalink / raw)
  To: openembedded-core

The network sanity check is quite noisy atm, this patch addresses the noise
of complaining about checksums for the non scm sources.

I still need to work out a clean way to quieten the info messages that the
fetch is running, i.e.

 NOTE: fetch http://autobuilder.yoctoproject.org/sources/git2_git.yoctoproject.org.yocto-firewall-test.tar.gz
 NOTE: fetch https://eula-downloads.yoctoproject.org/index.php
 NOTE: fetch http://bugzilla.yoctoproject.org/report.cgi

Ideas welcome ;-)

The following changes since commit a6e9edb7b4b5b0bdb067a59d691d33fba8948963:

  sato-sdk: add clutter for sato-sdk image (2011-07-12 15:23:35 +0100)

are available in the git repository at:
  git://git.openembedded.org/openembedded-core-contrib josh/sanity
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=josh/sanity

Joshua Lock (1):
  sanity: don't warn about SRC_URI checksums for connectivity test uris

 meta/classes/sanity.bbclass |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

-- 
1.7.6




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

* [PATCH 1/1] sanity: don't warn about SRC_URI checksums for connectivity test uris
  2011-07-13  2:24 [PATCH 0/1] Quieten network connectivity check Joshua Lock
@ 2011-07-13  2:24 ` Joshua Lock
  0 siblings, 0 replies; 2+ messages in thread
From: Joshua Lock @ 2011-07-13  2:24 UTC (permalink / raw)
  To: openembedded-core

This patch creates the .done files for the CONNECTIVITY_CHECK_URIS in the
sanity DL_DIR so that the user isn't warned about there not being checksums
set for the URI's when sanity checking the network.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
---
 meta/classes/sanity.bbclass |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index c9d37c9..b586de9 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -96,10 +96,16 @@ def check_connectivity(d):
         data = bb.data.createCopy(d)
         bookmark = os.getcwd()
         dldir = bb.data.expand('${TMPDIR}/sanity', data)
+        bb.utils.mkdirhier(dldir)
         bb.data.setVar('DL_DIR', dldir, data)
 
         try:
             fetcher = bb.fetch2.Fetch(test_uris, data)
+            # Touch .done files for the CONNECTIVITY_CHECK_URIS so that the user
+            # doesn't see checksum warnings
+            for uri in fetcher.urls:
+	        ud = fetcher.ud[uri]
+		open(ud.donestamp, 'w').close()
             fetcher.download()
             fetcher.clean(test_uris)
         except Exception:
-- 
1.7.6




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

end of thread, other threads:[~2011-07-13  2:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-13  2:24 [PATCH 0/1] Quieten network connectivity check Joshua Lock
2011-07-13  2:24 ` [PATCH 1/1] sanity: don't warn about SRC_URI checksums for connectivity test uris Joshua Lock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox