mirror of
https://github.com/peridotbuild/pv2.git
synced 2024-11-21 12:41:26 +00:00
temporarily allow md5
This commit is contained in:
parent
93f5fbe65d
commit
0913ae912f
@ -46,8 +46,8 @@ def get_checksum(file_path: str, hashtype: str = 'sha256') -> str:
|
|||||||
Borrowed from empanadas with some modifications
|
Borrowed from empanadas with some modifications
|
||||||
"""
|
"""
|
||||||
# We shouldn't be using sha1 or md5.
|
# We shouldn't be using sha1 or md5.
|
||||||
if hashtype in ('sha', 'sha1', 'md5'):
|
#if hashtype in ('sha', 'sha1', 'md5'):
|
||||||
raise err.ProvidedValueError(f'{hashtype} is not allowed.')
|
# raise err.ProvidedValueError(f'{hashtype} is not allowed.')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
checksum = hashlib.new(hashtype)
|
checksum = hashlib.new(hashtype)
|
||||||
|
Loading…
Reference in New Issue
Block a user