Skip to content

Commit 57f5f81

Browse files
authored
include data_sources when checking checksums
1 parent 6950b51 commit 57f5f81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

easybuild/framework/easyblock.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2704,12 +2704,12 @@ def check_checksums_for(self, ent, sub='', source_cnt=None):
27042704
# try to get value with templates resolved, but fall back to not resolving templates;
27052705
# this is better for error reporting that includes names of source files
27062706
try:
2707-
sources = ent.get('sources', [])
2707+
sources = ent.get('sources', []) + ent.get('data_sources', [])
27082708
patches = ent.get('patches', []) + ent.get('postinstallpatches', [])
27092709
checksums = ent.get('checksums', [])
27102710
except EasyBuildError:
27112711
if isinstance(ent, EasyConfig):
2712-
sources = ent.get_ref('sources')
2712+
sources = ent.get_ref('sources') + ent.get_ref('data_sources')
27132713
patches = ent.get_ref('patches') + ent.get_ref('postinstallpatches')
27142714
checksums = ent.get_ref('checksums')
27152715

0 commit comments

Comments
 (0)