diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-22 13:01:28 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-22 13:08:28 +0000 |
commit | 43358a9b595b2928458a5f463cf1949394160c3a (patch) | |
tree | 1b67f1aa93284a0ca9a0501a78c4511d7bffb755 /lib/bb/fetch2/__init__.py | |
parent | 76c9871740ef42ac35fdfdcb89a68478cca370cd (diff) | |
download | openembedded-core-contrib-43358a9b595b2928458a5f463cf1949394160c3a.tar.gz |
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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/__init__.py')
-rw-r--r-- | lib/bb/fetch2/__init__.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index 0f9c643695..5b416ab55a 100644 --- a/lib/bb/fetch2/__init__.py +++ b/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) |