Skip to content

Commit 72dbc89

Browse files
take into account that 'patches' also takes tuples
1 parent 4666c1c commit 72dbc89

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

easybuild/tools/github.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1785,6 +1785,8 @@ def new_pr(paths, ecs, title=None, descr=None, commit_msg=None):
17851785

17861786
for ec, ec_path in zip(file_info['ecs'], file_info['paths_in_repo']):
17871787
for patch in ec.asdict()['patches']:
1788+
if isinstance(patch, tuple):
1789+
patch = patch[0]
17881790
if patch not in paths['patch_files'] and not os.path.isfile(os.path.join(os.path.dirname(ec_path), patch)):
17891791
print_warning("new patch file %s, referenced by %s, is not included in this PR" %
17901792
(patch, ec.filename()))

0 commit comments

Comments
 (0)