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 <[email protected]> --- 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 _______________________________________________ Openembedded-core mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
