Skip to content

Commit

Permalink
also consider sources provided as dict in EasyBlock.check_checksums_for
Browse files Browse the repository at this point in the history
  • Loading branch information
lexming committed Jun 24, 2021
1 parent 70ebcc5 commit ddff401
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion easybuild/framework/easyblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -2012,7 +2012,11 @@ def check_checksums_for(self, ent, sub='', source_cnt=None):

for fn, checksum in zip(sources + patches, checksums):
if isinstance(checksum, dict):
checksum = checksum.get(fn)
if isinstance(fn, dict):
filename = fn['filename']
else:
filename = fn
checksum = checksum.get(filename)

# take into account that we may encounter a tuple of valid SHA256 checksums
# (see https://github.com/easybuilders/easybuild-framework/pull/2958)
Expand Down

0 comments on commit ddff401

Please sign in to comment.