From 4a5458f38f7a4d932c2d56f38b99b3f3ed1d0da8 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 22 Jan 2016 13:01:28 +0000 Subject: 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 --- bitbake/lib/bb/fetch2/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bitbake/lib/bb/fetch2/__init__.py') 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={}): raise NoChecksumError('Missing SRC_URI checksum', ud.url) # Log missing sums so user can more easily add them - if not ud.md5_expected: + if not ud.md5_expected and not ud.sha256_expected: logger.warn('Missing md5 SRC_URI checksum for %s, consider adding to the recipe:\n' 'SRC_URI[%s] = "%s"', ud.localpath, ud.md5_name, md5data) - - if not ud.sha256_expected: logger.warn('Missing sha256 SRC_URI checksum for %s, consider adding to the recipe:\n' 'SRC_URI[%s] = "%s"', ud.localpath, ud.sha256_name, sha256data) -- cgit v1.2.3-54-g00ecf