This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[setup PATCH] Add log msgs to Installer::installOneSource (Take 2)


Index: ChangeLog
===================================================================
RCS file: /home/max/cvsmirror/cygwin-apps-cvs/setup/ChangeLog,v
retrieving revision 2.367
diff -u -p -r2.367 ChangeLog
--- ChangeLog 11 Jul 2003 22:48:13 -0000 2.367
+++ ChangeLog 16 Jul 2003 13:13:00 -0000
@@ -1,3 +1,8 @@
+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.
+
 2003-07-10  Jeremy White  <jwhite@codeweavers.com>

  * mount.cc, root.cc, site.cc:  Make StringOptions required,
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 13:14:37 -0000
@@ -340,6 +340,16 @@ Installer::installOneSource (packagemeta

       total_bytes_sofar += package_bytes;
     }
+  else
+    {
+      if (!tmp) log(LOG_PLAIN, String("Failed to open file: ")
+          + source.Cached() );
+      else if (!tmp2) log(LOG_PLAIN,
+          String("Failed to initialize decompressor or archive extractor:
")
+          + source.Cached() );
+      else log(LOG_PLAIN, String("Failed to initialize archive extractor:
")
+          + source.Cached() );
+    }

   progress (0);



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]