mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
patchutils: Be less silent about patches that don't apply.
This commit is contained in:
parent
3cc8f97398
commit
28e66e552f
@ -398,12 +398,12 @@ def apply_patch(original, patchfile, reverse=False, fuzz=2):
|
||||
shutil.copyfileobj(fp, result)
|
||||
result.close()
|
||||
|
||||
cmdline = ["patch", "--no-backup-if-mismatch", "--force", "--silent", "-r", "-"]
|
||||
cmdline = ["patch", "--no-backup-if-mismatch", "--force", "-r", "-"]
|
||||
if reverse: cmdline.append("--reverse")
|
||||
if fuzz != 2: cmdline.append("--fuzz=%d" % fuzz)
|
||||
cmdline += [result.name, patchfile.name]
|
||||
|
||||
exitcode = subprocess.call(cmdline, stdout=_devnull, stderr=_devnull)
|
||||
exitcode = subprocess.call(cmdline)
|
||||
if exitcode != 0:
|
||||
raise PatchApplyError("Failed to apply patch (exitcode %d)." % exitcode)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user