Explorar el Código

Let dpkg-source ignore comments in the hunk header as used by
diff -p (Anand Kumria). Closes: #344880

Frank Lichtenheld hace 20 años
padre
commit
a099d1b237
Se han modificado 3 ficheros con 10 adiciones y 1 borrados
  1. 5 0
      ChangeLog
  2. 4 0
      debian/changelog
  3. 1 1
      scripts/dpkg-source.pl

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2006-01-29  Anand Kumria  <wildfire@progsoc.org>
+
+	* scripts/dpkg-source.pl (checkdiff): Ignore comments
+	hunk header line as used by diff -p.
+
 2006-01-29  Guillem Jover  <guillem@debian.org>
 
 	* utils/start-stop-daemon.c (do_help): Print the proper version giving

+ 4 - 0
debian/changelog

@@ -2,6 +2,10 @@ dpkg (1.13.14~) UNRELEASED; urgency=low
 
   [ Guillem Jover ]
   * Make start-stop-daemon print the proper version instead of 'VERSION'.
+  
+  [ Frank Lichtenheld ]
+  * Let dpkg-source ignore comments in the hunk header as used by
+  diff -p (Anand Kumria). Closes: #344880
 
  -- Guillem Jover <guillem@debian.org>  Sun, 29 Jan 2006 06:02:58 +0200
 

+ 1 - 1
scripts/dpkg-source.pl

@@ -1130,7 +1130,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;