A VERSION file may have no hashes.

This commit is contained in:
Chris Johns 2015-12-11 18:28:26 +11:00
parent c07ee80c2c
commit 4dce089b57

View File

@ -96,7 +96,11 @@ def load_release_hashes(macros):
if released():
v = _load_released_version_config()
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()
if len(hs) != 2:
raise error.general('invalid release hash in VERSION')