patchutils.py: Add '--no-backup-if-mismatch' when calling 'patch' to avoid creating backups.

This commit is contained in:
Sebastian Lackner 2014-11-18 04:15:56 +01:00
parent d31c55702c
commit cc5b91441d

View File

@ -365,7 +365,7 @@ def apply_patch(content, patches, reverse=False, fuzz=2):
for patch in patches:
patchfile = patch.extract()
cmdline = ["patch", "--force", "--silent", "-r", "-"]
cmdline = ["patch", "--no-backup-if-mismatch", "--force", "--silent", "-r", "-"]
if reverse: cmdline.append("--reverse")
if fuzz != 2: cmdline.append("--fuzz=%d" % fuzz)
cmdline += [contentfile.name, patchfile.name]