diff options
author | Chris Johns <chrisj@rtems.org> | 2014-08-09 23:49:29 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-08-09 23:49:29 +1000 |
commit | 4934771892922f7649dcc9e20e726a2308b96ddb (patch) | |
tree | b7d2eb84a5bbe2664a7b0e0e6fab2a80c4c7e846 /source-builder/sb/download.py | |
parent | rtems-4.11: Do not build GDB sim on MinGW32 for some targets. (diff) | |
download | rtems-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.py | 4 |
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_)) |