]> err.no Git - dpkg/commitdiff
Fix stupid mistake made by me when applying the patch for diff -p handling
authorFrank Lichtenheld <djpig@debian.org>
Sun, 29 Jan 2006 18:08:08 +0000 (18:08 +0000)
committerFrank Lichtenheld <djpig@debian.org>
Sun, 29 Jan 2006 18:08:08 +0000 (18:08 +0000)
by Anand Kumria

scripts/dpkg-source.pl

index 068a1997fbae12d301c5cf3a24ad5c51d1cf31d4..8c1cb3ff94fd30d08ae4ecd35bb00fc548566543 100755 (executable)
@@ -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;