[OE-core] [CONSOLIDATED PULL 04/22] sanity: don't warn about SRC_URI checksums for connectivity test uris
Saul Wold
sgw at linux.intel.com
Tue Jul 19 06:50:51 UTC 2011
From: Joshua Lock <josh at 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 at 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.3.4
More information about the Openembedded-core
mailing list