mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
patchutils.py: Improve handling of patches without linebreak at end of file in generate_ifdef_patch.
This commit is contained in:
parent
4b1c2ec4d6
commit
5e5229ecce
@ -508,6 +508,8 @@ def generate_ifdef_patch(original, patched, ifdef):
|
||||
line = diff.readline()
|
||||
if line == "":
|
||||
break
|
||||
if line.startswith("\\ "):
|
||||
continue
|
||||
|
||||
# Parse each hunk, and extract the srclines and dstlines. This algorithm is very
|
||||
# similar to _read_single_patch.
|
||||
|
Loading…
x
Reference in New Issue
Block a user