Skip to content

Commit

Permalink
check return code when selecting patch type
Browse files Browse the repository at this point in the history
When determining which patch file to apply check the return code of the
patch command and ignore those which indicate failure.
  • Loading branch information
jjhelmus committed May 5, 2023
1 parent ccc3e81 commit 916284a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conda_build/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,9 @@ def copy_to_be_patched_files(src_dir, tmp_src_dir, files):
result[check_name] = False
pass
else:
if process.returncode:
result[check_name] = False
continue
result[check_name] = fmt
# Save the first one found.
if check_name == "applicable" and not result["args"]:
Expand Down

0 comments on commit 916284a

Please sign in to comment.