This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
[setup PATCH] Add some log msgs to installOneSource
- From: "Max Bowsher" <maxb at ukf dot net>
- To: <cygwin-apps at cygwin dot com>
- Date: Wed, 16 Jul 2003 09:44:46 +0100
- Subject: [setup PATCH] Add some log msgs to installOneSource
2003-07-16 Max Bowsher <maxb@ukf.net>
* install.cc (Installer::installOneSource): Add some log messages,
as
a stopgap until we add some proper error handling here.
Index: install.cc
===================================================================
RCS file: /home/max/cvsmirror/cygwin-apps-cvs/setup/install.cc,v
retrieving revision 2.61
diff -u -p -r2.61 install.cc
--- install.cc 25 Mar 2003 20:57:13 -0000 2.61
+++ install.cc 16 Jul 2003 08:21:39 -0000
@@ -227,7 +227,14 @@ Installer::installOneSource (packagemeta
if (tmp2)
thefile = archive::extract (tmp2);
else
- thefile = archive::extract (tmp);
+ {
+ log(LOG_PLAIN, String("Failed to decompress: ") +
source.Cached() );
+ thefile = archive::extract (tmp);
+ }
+ }
+ else
+ {
+ log(LOG_PLAIN, String("Failed to open: ") + source.Cached() );
}
/* FIXME: potential leak of either *tmp or *tmp2 */
@@ -339,6 +346,10 @@ Installer::installOneSource (packagemeta
delete thefile;
total_bytes_sofar += package_bytes;
+ }
+ else
+ {
+ log(LOG_PLAIN, String("Failed to extract from archive: ") +
source.Cached() );
}
progress (0);