mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
patchutils.py: Silence output of patch commandline utility.
This commit is contained in:
parent
707a96d35a
commit
60632bb522
3
debian/tools/patchutils.py
vendored
3
debian/tools/patchutils.py
vendored
@ -305,7 +305,8 @@ def apply_patch(content, patches, reverse=False, fuzz=2):
|
||||
if fuzz != 2: cmdline.append("--fuzz=%d" % fuzz)
|
||||
cmdline += [contentfile.name, patchfile.name]
|
||||
|
||||
exitcode = subprocess.call(cmdline)
|
||||
with open(os.devnull, 'w') as devnull:
|
||||
exitcode = subprocess.call(cmdline, stdout=devnull, stderr=devnull)
|
||||
if exitcode != 0:
|
||||
raise PatchApplyError("Failed to apply patch (exitcode %d)." % exitcode)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user