[5 RSB PATCH 1/2] sb/downloads: Raise errors on no hash present

chrisj at rtems.org chrisj at rtems.org
Tue Nov 15 11:03:29 UTC 2022


From: Chris Johns <chrisj at rtems.org>

Close #4761
---
 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 3aaa701..9ee5ca3 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):
-- 
2.37.1



More information about the devel mailing list