Patchwork [CONSOLIDATED,PULL,04/22] sanity: don't warn about SRC_URI checksums for connectivity test uris

login
register
mail settings
Submitter Saul Wold
Date July 19, 2011, 6:50 a.m.
Message ID <ad78786035d4b29fd78eb71ac1dec3bf636a297b.1311058024.git.sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/7839/
State New, archived
Headers show

Comments

Saul Wold - July 19, 2011, 6:50 a.m.
From: Joshua Lock <josh@linux.intel.com>

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(-)

Patch

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: