[rtems-source-builder commit] A VERSION file may have no hashes.

Chris Johns chrisj at rtems.org
Sun Dec 13 04:28:56 UTC 2015


Module:    rtems-source-builder
Branch:    master
Commit:    9c6843806ef6cbd1f44c2be94bd952f2e61cd55b
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=9c6843806ef6cbd1f44c2be94bd952f2e61cd55b

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 f0b4321..bd0e133 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