sb/downloads: Raise errors on no hash present

Close #4761
This commit is contained in:
Chris Johns
2022-11-15 21:46:27 +11:00
parent b57948f666
commit 0a7ecef07e

View File

@@ -132,9 +132,7 @@ def _hash_check(file_, absfile, macros, remove = True):
if hasher is not None:
del hasher
else:
if version.released():
raise error.general('%s: no hash found in released RSB' % (file_))
log.warning('%s: no hash found' % (file_))
raise error.general('%s: no hash found in released RSB' % (file_))
return not failed
def _local_path(source, pathkey, config):