[rtems-source-builder commit] sb: No hash on a package is an error

Chris Johns chrisj at rtems.org
Wed Dec 6 21:50:42 UTC 2023


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

Author:    Chris Johns <chrisj at rtems.org>
Date:      Thu Nov 30 07:46:48 2023 +1100

sb: No hash on a package is an error

---

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

diff --git a/source-builder/sb/download.py b/source-builder/sb/download.py
index 410edeb..3f26644 100644
--- a/source-builder/sb/download.py
+++ b/source-builder/sb/download.py
@@ -132,9 +132,7 @@ 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_))
+        raise error.general('%s: no hash found in released RSB' % (file_))
     return not failed
 
 def _local_path(source, pathkey, config):



More information about the vc mailing list