summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-22 13:01:28 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-24 09:40:42 +0000
commit4a5458f38f7a4d932c2d56f38b99b3f3ed1d0da8 (patch)
tree84ba5f4e1324c5ad52a4410688bfc956967883b1 /bitbake/lib/bb
parente66599f374641d2216130104140111bf17678209 (diff)
downloadpoky-4a5458f38f7a4d932c2d56f38b99b3f3ed1d0da8.tar.gz
bitbake: fetch2: Don't show checksum warnings if a single checksum was supplied
If one checksum is supplied to a SRC_URI, we really don't want to show warnings about the other type which isn't present as one checksum is really good enough for most cases. (Bitbake rev: 43358a9b595b2928458a5f463cf1949394160c3a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 0f9c643695..5b416ab55a 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -585,12 +585,10 @@ def verify_checksum(ud, d, precomputed={}):
585 raise NoChecksumError('Missing SRC_URI checksum', ud.url) 585 raise NoChecksumError('Missing SRC_URI checksum', ud.url)
586 586
587 # Log missing sums so user can more easily add them 587 # Log missing sums so user can more easily add them
588 if not ud.md5_expected: 588 if not ud.md5_expected and not ud.sha256_expected:
589 logger.warn('Missing md5 SRC_URI checksum for %s, consider adding to the recipe:\n' 589 logger.warn('Missing md5 SRC_URI checksum for %s, consider adding to the recipe:\n'
590 'SRC_URI[%s] = "%s"', 590 'SRC_URI[%s] = "%s"',
591 ud.localpath, ud.md5_name, md5data) 591 ud.localpath, ud.md5_name, md5data)
592
593 if not ud.sha256_expected:
594 logger.warn('Missing sha256 SRC_URI checksum for %s, consider adding to the recipe:\n' 592 logger.warn('Missing sha256 SRC_URI checksum for %s, consider adding to the recipe:\n'
595 'SRC_URI[%s] = "%s"', 593 'SRC_URI[%s] = "%s"',
596 ud.localpath, ud.sha256_name, sha256data) 594 ud.localpath, ud.sha256_name, sha256data)