Bug#3125: bug (and correction) in dpkg-1.1.6 scripts/install-info.pl
Package: dpkg
I found a problem in dpkg-1.1.6/scripts/install-info.pl. It shows
itself as creating a new section even if it is already present in the
dir file. The line :
* Menu
is first stripped from the input, then it is searched for. Here is
the correction I did to make it work :
diff -ruN dpkg-1.1.6.orig/scripts/install-info.pl
dpkg-1.1.6/scripts/install-inf
o.pl
--- dpkg-1.1.6.orig/scripts/install-info.pl Wed May 1 01:02:20
1996
+++ dpkg-1.1.6/scripts/install-info.pl Sun May 26 16:45:01 1996
@@ -244,9 +244,8 @@
$mss= $i;
@work= (@work[0..$i-1], @work[$j..$#work]);
} elsif (length($sectionre)) {
- for ($i=0; $i<=$#work && $work[$i] !~ m/^\* *menu/i; $i++) {
}
$mss= -1;
- for (; $i<=$#work; $i++) {
+ for ($i=0; $i<=$#work; $i++) {
$_= $work[$i];
next if m/^\*/;
next unless m/$sectionre/io;
Reply to: