Parcourir la source

Dpkg::Source::Patch: Add comment about ignoring the Index: pseudo-header

Guillem Jover il y a 12 ans
Parent
commit
1592301d59
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      scripts/Dpkg/Source/Patch.pm

+ 4 - 1
scripts/Dpkg/Source/Patch.pm

@@ -403,7 +403,10 @@ sub analyze {
   HUNK:
   HUNK:
     while (defined($_) or not eof($self)) {
     while (defined($_) or not eof($self)) {
 	my (%path, %fn);
 	my (%path, %fn);
-	# skip comments leading up to patch (if any)
+
+	# Skip comments leading up to the patch (if any). Although we do not
+	# look for an Index: pseudo-header in the comments, because we would
+	# not use it anyway, as we require both ---/+++ filename headers.
 	while (1) {
 	while (1) {
 	    if (/^(?:--- |\+\+\+ |@@ -)/) {
 	    if (/^(?:--- |\+\+\+ |@@ -)/) {
 		last;
 		last;