avoid reverse patch
This commit is contained in:
parent
c5e16e08ae
commit
670e614bd7
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue