mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
A VERSION file may have no hashes.
This commit is contained in:
parent
c07ee80c2c
commit
4dce089b57
@ -96,7 +96,11 @@ def load_release_hashes(macros):
|
|||||||
if released():
|
if released():
|
||||||
v = _load_released_version_config()
|
v = _load_released_version_config()
|
||||||
if v is not None:
|
if v is not None:
|
||||||
for hash in v.items('hashes'):
|
try:
|
||||||
|
hashes = v.items('hashes')
|
||||||
|
except:
|
||||||
|
hashes = []
|
||||||
|
for hash in hashes:
|
||||||
hs = hash[1].split()
|
hs = hash[1].split()
|
||||||
if len(hs) != 2:
|
if len(hs) != 2:
|
||||||
raise error.general('invalid release hash in VERSION')
|
raise error.general('invalid release hash in VERSION')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user