[rtems-source-builder commit] A VERSION file may have no hashes.
Chris Johns
chrisj at rtems.org
Fri Dec 11 07:29:26 UTC 2015
Module: rtems-source-builder
Branch: 4.11
Commit: 4dce089b574ddedc65d2633257639420bf9eb939
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=4dce089b574ddedc65d2633257639420bf9eb939
Author: Chris Johns <chrisj at rtems.org>
Date: Fri Dec 11 18:28:26 2015 +1100
A VERSION file may have no hashes.
---
source-builder/sb/version.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/source-builder/sb/version.py b/source-builder/sb/version.py
index 50dbf5f..8392e7e 100644
--- a/source-builder/sb/version.py
+++ b/source-builder/sb/version.py
@@ -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')
More information about the vc
mailing list