[PATCH] setup: don't attempt to re-read a missing installed.db

Igor Pechtchanski pechtcha@cs.nyu.edu
Fri Sep 30 03:44:00 GMT 2005


The attached patch should fix gobs and gobs of "io_stream_cygfile: fopen
failed 2 No such file or directory" log messages for initial installs.
The ChangeLog is below.
	Igor
==============================================================================
ChangeLog:
2005-09-27  Igor Pechtchanski  <pechtcha@cs.nyu.edu>

	* package_db.cc (packagedb::packagedb): Remember missing package
	database file.

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA
-------------- next part --------------
Index: package_db.cc
===================================================================
RCS file: /cvs/cygwin-apps/setup/package_db.cc,v
retrieving revision 2.29
diff -u -p -r2.29 package_db.cc
--- package_db.cc	5 May 2005 22:48:35 -0000	2.29
+++ package_db.cc	30 Sep 2005 03:24:27 -0000
@@ -53,6 +53,7 @@ packagedb::packagedb ()
     {
       /* no parameters. Read in the local installation database. */
       db = io_stream::open ("cygfile:///etc/setup/installed.db", "rt");
+      installeddbread = 1;
       if (!db)
 	return;
       /* flush_local_db_package_data */
@@ -123,7 +124,6 @@ packagedb::packagedb ()
 	    // unknown dbversion
 	    exit (1);
 	}
-      installeddbread = 1;
     }
 }
 


More information about the Cygwin-apps mailing list