From: Frank Lichtenheld Date: Sun, 29 Jan 2006 18:08:08 +0000 (+0000) Subject: Fix stupid mistake made by me when applying the patch for diff -p handling X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=203c6540a089ff9c44cb3fc87b2c460c856717f0;p=dpkg Fix stupid mistake made by me when applying the patch for diff -p handling by Anand Kumria --- diff --git a/scripts/dpkg-source.pl b/scripts/dpkg-source.pl index 068a1997..8c1cb3ff 100755 --- a/scripts/dpkg-source.pl +++ b/scripts/dpkg-source.pl @@ -1132,7 +1132,7 @@ sub checkdiff # read hunk header (@@) s/\n$// or &error("diff `$diff' is missing trailing newline"); next if /^\\ No newline/; - /^@@ -\d+(,(\d+))? \+\d+(,(\d+))? @\@ .*$/ or + /^@@ -\d+(,(\d+))? \+\d+(,(\d+))? @\@( .*)?$/ or &error("Expected ^\@\@ in line $. of diff `$diff'"); my ($olines, $nlines) = ($1 ? $2 : 1, $3 ? $4 : 1); ++$hunk;