[rtems-source-builder commit] Generate an error if there is no hash when released.

Chris Johns chrisj at rtems.org
Fri Dec 11 05:27:11 UTC 2015


Module:    rtems-source-builder
Branch:    4.11
Commit:    b6d188bb26d0ac3ce9662b34bbfb965f651251ba
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=b6d188bb26d0ac3ce9662b34bbfb965f651251ba

Author:    Chris Johns <chrisj at rtems.org>
Date:      Fri Dec 11 16:21:09 2015 +1100

Generate an error if there is no hash when released.

---

 source-builder/sb/download.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/source-builder/sb/download.py b/source-builder/sb/download.py
index 624151b..6995c03 100644
--- a/source-builder/sb/download.py
+++ b/source-builder/sb/download.py
@@ -35,6 +35,7 @@ import git
 import log
 import path
 import sources
+import version
 
 def _do_download(opts):
     download = True
@@ -109,6 +110,8 @@ def _hash_check(file_, absfile, macros, remove = True):
         if hasher is not None:
             del hasher
     else:
+        if version.released():
+            raise error.general('%s: no hash found in released RSB' % (file_))
         log.warning('%s: no hash found' % (file_))
     return not failed
 



More information about the vc mailing list