summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/download.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2014-08-09 23:49:29 +1000
committerChris Johns <chrisj@rtems.org>2014-08-09 23:49:29 +1000
commit4934771892922f7649dcc9e20e726a2308b96ddb (patch)
treeb7d2eb84a5bbe2664a7b0e0e6fab2a80c4c7e846 /source-builder/sb/download.py
parentrtems-4.11: Do not build GDB sim on MinGW32 for some targets. (diff)
downloadrtems-source-builder-4934771892922f7649dcc9e20e726a2308b96ddb.tar.bz2
sb: Add support to get sources and hashses.
Diffstat (limited to 'source-builder/sb/download.py')
-rw-r--r--source-builder/sb/download.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source-builder/sb/download.py b/source-builder/sb/download.py
index df448e0..cb1362b 100644
--- a/source-builder/sb/download.py
+++ b/source-builder/sb/download.py
@@ -53,8 +53,8 @@ def _humanize_bytes(bytes, precision = 1):
def _hash_check(file_, absfile, macros, remove = True):
failed = False
- if file_.lower() in macros.map_keys('hashes'):
- m1, m2, hash = macros.get(file_.lower(), globals = False, maps = 'hashes')
+ hash = sources.get_hash(file_.lower(), macros)
+ if hash is not None:
hash = hash.split()
if len(hash) != 2:
raise error.internal('invalid hash format: %s' % (file_))