Skip to content

Commit ddff401

Browse files
committed
also consider sources provided as dict in EasyBlock.check_checksums_for
1 parent 70ebcc5 commit ddff401

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

easybuild/framework/easyblock.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2012,7 +2012,11 @@ def check_checksums_for(self, ent, sub='', source_cnt=None):
20122012

20132013
for fn, checksum in zip(sources + patches, checksums):
20142014
if isinstance(checksum, dict):
2015-
checksum = checksum.get(fn)
2015+
if isinstance(fn, dict):
2016+
filename = fn['filename']
2017+
else:
2018+
filename = fn
2019+
checksum = checksum.get(filename)
20162020

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

0 commit comments

Comments
 (0)