summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-07-19 11:56:10 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-21 08:41:12 +0100
commitde4066ea5299cf99a382956cf673f13343a08c42 (patch)
tree45257edc2a331e800954f857e2222607e52ac102 /bitbake/lib
parent2b5c3617c2779d7b13afe91bcc07f8b6057be1e7 (diff)
downloadpoky-de4066ea5299cf99a382956cf673f13343a08c42.tar.gz
bitbake: fetch2: allow hiding checksum warning
If BB_STRICT_CHECKSUMS is set to "ignore" then don't display a warning if no checksums are specified in the recipe. This is not intended to be used from recipes - it is needed when we move to using more standard code paths to fetch new files from scripts i.e. where we don't know what the checksums are in advance. (Bitbake rev: f15ca7339de8a448a93a14cf6130b3925178a920) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 5c02317764..2e615b2d6a 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -584,6 +584,12 @@ def verify_checksum(ud, d, precomputed={}):
584 ud.sha256_name, sha256data)) 584 ud.sha256_name, sha256data))
585 raise NoChecksumError('Missing SRC_URI checksum', ud.url) 585 raise NoChecksumError('Missing SRC_URI checksum', ud.url)
586 586
587 if strict == "ignore":
588 return {
589 _MD5_KEY: md5data,
590 _SHA256_KEY: sha256data
591 }
592
587 # Log missing sums so user can more easily add them 593 # Log missing sums so user can more easily add them
588 logger.warning('Missing md5 SRC_URI checksum for %s, consider adding to the recipe:\n' 594 logger.warning('Missing md5 SRC_URI checksum for %s, consider adding to the recipe:\n'
589 'SRC_URI[%s] = "%s"', 595 'SRC_URI[%s] = "%s"',