Explorar o código

Make install-info add a new line after adding the last entry at the
end of the dir file, which makes the info readers able to see those
last enties (Nicolas François). Closes: #164495

Guillem Jover %!s(int64=20) %!d(string=hai) anos
pai
achega
1c2eb9c31c
Modificáronse 3 ficheiros con 11 adicións e 1 borrados
  1. 6 0
      ChangeLog
  2. 3 0
      debian/changelog
  3. 2 1
      scripts/install-info.pl

+ 6 - 0
ChangeLog

@@ -1,3 +1,9 @@
+2006-05-04  Nicolas François  <nicolas.francois@centraliens.net>
+
+	* scripts/install-info.pl: Add a new line after adding the last
+	entry at the end of the dir file, which makes the info readers
+	able to see those last entries.
+
 2006-05-04  Wayne Davison <wayned@users.sourceforge.net>,
             Guillem Jover  <guillem@debian.org>
 

+ 3 - 0
debian/changelog

@@ -46,6 +46,9 @@ dpkg (1.13.19~) UNRELEASED; urgency=low
     by renaming the infodir variable to dirfile and not appending the
     '/dir' string except when initializing from '--info-dir' or
     '--infodir' (Wayne Davison). Closes: #61640, #67237, #286275
+  * Make install-info add a new line after adding the last entry at the
+    end of the dir file, which makes the info readers able to see those
+    last enties (Nicolas François). Closes: #164495
 
  -- Jacobo Tarrio <jtarrio@debian.org>  Wed,  3 May 2006 11:50:59 +0200
 

+ 2 - 1
scripts/install-info.pl

@@ -443,7 +443,8 @@ foreach ( @work ) {
 
 if (!$nowrite) {
     open(NEW, "> $dirfile.new") || &ulquit("create $dirfile.new: $!");
-    print(NEW @head, join("\n", @newwork)) || &ulquit("write $dirfile.new: $!");
+    print(NEW @head, join("\n", @newwork), "\n") ||
+        &ulquit("write $dirfile.new: $!");
     close(NEW) || &ulquit("close $dirfile.new: $!");
 
     unlink("$dirfile.old");