[WINESYNC] When initially reverting wine-staging patches, ignore whitespace.

This fixes in particular problems when reverting created new files (i.e.
they are deleted). I suspect this is due to an endline-format "expectation"
from the git apply command.
This commit is contained in:
Hermès Bélusca-Maïto 2023-09-12 17:24:59 +02:00
parent 1d92196d2a
commit 32b81a9157
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -290,7 +290,7 @@ class wine_sync:
with open(patch_path, 'rb') as patch_file:
try:
subprocess.run(['git', '-C', self.reactos_src, 'apply', '-R', '--reject'], stdin=patch_file, check=True)
subprocess.run(['git', '-C', self.reactos_src, 'apply', '-R', '--ignore-whitespace', '--reject'], stdin=patch_file, check=True)
except subprocess.CalledProcessError as err:
print(f'Error while reverting patch {patch_file_name}')
print('Please check, remove the offending patch with git rm, and relaunch this script')