[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#107098: install-info problem



tags 107098 patch
tags 107098 moreinfo
thanks

textutils has always included the file
/usr/share/info/textutils.info.gz, not the file
/usr/share/info/textutils.info .

Nevertheless, if install-info is asked to install the
latter, it ought to check for the former.  I can't see
why it didn't in this case.  However, I don't have the
versions of textutils and dpkg that the submitter
originally used.  Can he provide more information?

In order to clarify the error message, I suggest the
following patch to install-info.  I have dpkg version
1.10.4 installed.

jdthood@thanatos:/usr/sbin$ diff -Naur install-info_ORIG install-info
--- install-info_ORIG	Sun Jul 14 22:19:49 2002
+++ install-info	Thu Oct 10 12:31:02 2002
@@ -125,8 +125,10 @@
 
     if (!-f $filename && -f "$filename.gz" || $filename =~ s/\.gz$//) {
         $filename= "gzip -cd <$filename.gz |";  $pipeit= 1;
-    } else {
+    } else if (-f $filename) {
         $filename= "< $filename";
+    } else {
+    	die "$name: File $filename not found\n";
     }
 
     if (!length($description)) {





Reply to: