[oe-commits] [bitbake] 04/12: bitbake: fetch2: add more hash functions for checksum verification

git at git.openembedded.org git at git.openembedded.org
Thu Jan 23 16:59:10 UTC 2020


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit e193fae58ea6f1cf32bbf131477c9d1c927cbacb
Author: Jean-Marie LEMETAYER <jean-marie.lemetayer at savoirfairelinux.com>
AuthorDate: Mon Jan 20 11:27:12 2020 +0100

    bitbake: fetch2: add more hash functions for checksum verification
    
    This commit enables the "sha1", "sha384" and "sha512" hash functions in
    the supported checksum list. This allows to use more SRC_URI checksums
    functions for a url:
    
      SRC_URI[sha1sum] = "..."
      SRC_URI[sha384sum] = "..."
      SRC_URI[sha512sum] = "..."
    
    The npm fetcher needs this to support subresource integrity:
      https://www.w3.org/TR/SRI/
    
    Signed-off-by: Jean-Marie LEMETAYER <jean-marie.lemetayer at savoirfairelinux.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/fetch2/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index f739fe2..8bdcd1c 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -33,7 +33,7 @@ _checksum_cache = bb.checksum.FileChecksumCache()
 
 logger = logging.getLogger("BitBake.Fetcher")
 
-CHECKSUM_LIST = [ "md5", "sha256" ]
+CHECKSUM_LIST = [ "md5", "sha256", "sha1", "sha384", "sha512" ]
 
 class BBFetchException(Exception):
     """Class all fetch exceptions inherit from"""

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list