avoid reverse patch

This commit is contained in:
Martin Diehl 2022-03-12 22:06:48 +01:00
parent c5e16e08ae
commit 670e614bd7
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ def copy_and_patch(patch,orig,editor):
shutil.copyfile(orig,orig.parent/patch.stem)
except shutil.SameFileError:
pass
damask.util.run(f'patch {orig.parent/patch.stem} {patch} -b')
damask.util.run(f'patch {orig.parent/patch.stem} {patch} --backup --forward')
with open(orig.parent/patch.stem) as f_in:
content = f_in.read()
with open(orig.parent/patch.stem,'w') as f_out: