Selaa lähdekoodia

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

Guillem Jover 12 vuotta sitten
vanhempi
commit
1592301d59
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      scripts/Dpkg/Source/Patch.pm

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

@@ -403,7 +403,10 @@ sub analyze {
   HUNK:
     while (defined($_) or not eof($self)) {
 	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) {
 	    if (/^(?:--- |\+\+\+ |@@ -)/) {
 		last;