diff options
| -rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 4 |
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) |
