mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-22 03:51:33 +00:00
aedi: fix applying of patches
This commit is contained in:
parent
7df124384b
commit
7a76fb577b
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ class BuildState:
|
||||||
test_arg = '--dry-run'
|
test_arg = '--dry-run'
|
||||||
args = ['patch', test_arg, '--strip=1', '--input=' + str(patch_path)]
|
args = ['patch', test_arg, '--strip=1', '--input=' + str(patch_path)]
|
||||||
|
|
||||||
if subprocess.run(args, cwd=extract_path, env=self.environment) == 0:
|
if subprocess.run(args, cwd=extract_path, env=self.environment).returncode == 0:
|
||||||
# Patch wasn't applied yet, do it now
|
# Patch wasn't applied yet, do it now
|
||||||
args.remove(test_arg)
|
args.remove(test_arg)
|
||||||
subprocess.run(args, check=True, cwd=extract_path, env=self.environment)
|
subprocess.run(args, check=True, cwd=extract_path, env=self.environment)
|
||||||
|
|
Loading…
Reference in a new issue