summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorJean-Marie LEMETAYER <jean-marie.lemetayer@savoirfairelinux.com>2020-01-24 18:08:06 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-27 16:48:10 +0000
commit73912553c73017b63dd59efdc44698f2a5514490 (patch)
treeb1d1e3cbf5650ded9f0e983a4fb32a57d6a9201e /bitbake
parentd6bd2c1a4bdae66006a0b189e381eee2cc2744f0 (diff)
downloadpoky-73912553c73017b63dd59efdc44698f2a5514490.tar.gz
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/ (Bitbake rev: cd80a646aa841b71e68282bb8d11194abb5df0e4) Signed-off-by: Jean-Marie LEMETAYER <jean-marie.lemetayer@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 9762c36045..28ded462df 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -33,7 +33,7 @@ _checksum_cache = bb.checksum.FileChecksumCache()
33 33
34logger = logging.getLogger("BitBake.Fetcher") 34logger = logging.getLogger("BitBake.Fetcher")
35 35
36CHECKSUM_LIST = [ "md5", "sha256" ] 36CHECKSUM_LIST = [ "md5", "sha256", "sha1", "sha384", "sha512" ]
37 37
38class BBFetchException(Exception): 38class BBFetchException(Exception):
39 """Class all fetch exceptions inherit from""" 39 """Class all fetch exceptions inherit from"""