Quellcode durchsuchen

install-info: Ignore wrapped lines when matching section titles

Closes: #214684
Ian Zimmerman vor 18 Jahren
Ursprung
Commit
f780069c1a
3 geänderte Dateien mit 9 neuen und 1 gelöschten Zeilen
  1. 5 0
      ChangeLog
  2. 3 0
      debian/changelog
  3. 1 1
      scripts/install-info.pl

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-01-01  Ian Zimmerman  <itz@buug.org>
+
+	* scripts/install-info.pl: Ignore wrapped lines when matching
+	section titles.
+
 2008-01-01  John Zaitseff  <J.Zaitseff@zap.org.au>
 
 	* dselect/baselist.cc (baselist::wordwrapinfo): Stop processing when

+ 3 - 0
debian/changelog

@@ -18,6 +18,9 @@ dpkg (1.14.15) UNRELEASED; urgency=low
   * Do not loop endlessly in dselect with very long package descriptions.
     Closes: #179320, #342495
     Thanks to John Zaitseff.
+  * Ignore wrapped lines in install-info when matching section titles.
+    Closes: #214684
+    Thanks to Andreas Metzler and Ian Zimmerman.
 
   [ Updated dpkg translations ]
   * Norwegian Bokmål (Hans Fredrik Nordhaug). Closes: #457918

+ 1 - 1
scripts/install-info.pl

@@ -352,7 +352,7 @@ if (!$remove) {
         $mss= -1;
         for ($i=0; $i<=$#work; $i++) {
             $_= $work[$i];
-            next if m/^\*/;
+            next if m/^(\*|\s)/;
             next unless m/$sectionre/io;
             $mss= $i+1; last;
         }