Do not remove the file and fail if there is no sha256 specified.
This allow us to change the dependency version to change and make the checksum latter.
This commit is contained in:
parent
e1ad05783e
commit
59f2222ef7
|
@ -192,7 +192,9 @@ class BuildEnv:
|
|||
raise SkipCommand()
|
||||
os.remove(file_path)
|
||||
urllib.request.urlretrieve(file_url, file_path)
|
||||
if what.sha256 != get_sha256(file_path):
|
||||
if not what.sha256:
|
||||
print('Sha256 for {} not set, do no verify download'.format(what.name))
|
||||
elif what.sha256 != get_sha256(file_path):
|
||||
os.remove(file_path)
|
||||
raise StopBuild()
|
||||
|
||||
|
|
Loading…
Reference in New Issue