diff --git a/staging/patchutils.py b/staging/patchutils.py index 0639774e..3d1db2cc 100644 --- a/staging/patchutils.py +++ b/staging/patchutils.py @@ -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.