[rtems-source-builder commit] Generate an error if there is no hash when released.
Chris Johns
chrisj at rtems.org
Fri Dec 11 05:39:15 UTC 2015
Module: rtems-source-builder
Branch: master
Commit: e8ed687ec2b8696ffe8ef1b106ae56bbeff3938b
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=e8ed687ec2b8696ffe8ef1b106ae56bbeff3938b
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