From 2b30df7b46502b51c161dcca7c3318a01e7fd16d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 10 Jun 2022 12:44:50 +0200 Subject: [PATCH] PatchingInputAccessor: Allow empty lines in patches --- src/libfetchers/patching-input-accessor.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libfetchers/patching-input-accessor.cc b/src/libfetchers/patching-input-accessor.cc index 07aa8316c..78a0f4372 100644 --- a/src/libfetchers/patching-input-accessor.cc +++ b/src/libfetchers/patching-input-accessor.cc @@ -47,7 +47,8 @@ struct PatchingInputAccessor : InputAccessor || hasPrefix(line, "@@") || hasPrefix(line, "+") || hasPrefix(line, "-") - || hasPrefix(line, " "))) + || hasPrefix(line, " ") + || line.empty())) { flush(); }