mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Generate an error if there is no hash when released.
This commit is contained in:
parent
a861b312ec
commit
e8ed687ec2
@ -35,6 +35,7 @@ import git
|
|||||||
import log
|
import log
|
||||||
import path
|
import path
|
||||||
import sources
|
import sources
|
||||||
|
import version
|
||||||
|
|
||||||
def _do_download(opts):
|
def _do_download(opts):
|
||||||
download = True
|
download = True
|
||||||
@ -109,6 +110,8 @@ def _hash_check(file_, absfile, macros, remove = True):
|
|||||||
if hasher is not None:
|
if hasher is not None:
|
||||||
del hasher
|
del hasher
|
||||||
else:
|
else:
|
||||||
|
if version.released():
|
||||||
|
raise error.general('%s: no hash found in released RSB' % (file_))
|
||||||
log.warning('%s: no hash found' % (file_))
|
log.warning('%s: no hash found' % (file_))
|
||||||
return not failed
|
return not failed
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user