Skip to content

Commit 8d8e711

Browse files
committed
Minor simplification for adding dependenc ECs to PRs
1 parent 6d96793 commit 8d8e711

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

easybuild/tools/github.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,8 +1162,8 @@ def _easyconfigs_pr_common(paths, ecs, start_branch=None, pr_branch=None, start_
11621162
all_dep_info = copy_easyconfigs(dep_paths, target_dir)
11631163

11641164
# only consider new easyconfig files for dependencies (not updated ones)
1165-
for idx in range(len(all_dep_info['ecs'])):
1166-
if all_dep_info['new'][idx]:
1165+
for idx, new in enumerate(all_dep_info['new']):
1166+
if new:
11671167
for key, info in dep_info.items():
11681168
info.append(all_dep_info[key][idx])
11691169

0 commit comments

Comments
 (0)