Author: miguel
Date: 2007-09-27 11:01:39 -0400 (Thu, 27 Sep 2007)
New Revision: 86503

Modified:
   trunk/mcs/tools/gacutil/driver.cs
Log:
fix another crasher

Modified: trunk/mcs/tools/gacutil/driver.cs
===================================================================
--- trunk/mcs/tools/gacutil/driver.cs   2007-09-27 14:50:08 UTC (rev 86502)
+++ trunk/mcs/tools/gacutil/driver.cs   2007-09-27 15:01:39 UTC (rev 86503)
@@ -356,7 +356,13 @@
                                if (package != null) {
                                        string link_dir = Path.Combine (libdir, 
package);
                                        string link = Path.Combine (link_dir, 
(string) asm_info ["assembly"] + ".dll");
-                                       File.Delete (link);
+                                       try { 
+                                               File.Delete (link);
+                                       } catch {
+                                               // The file might not exist, 
happens with
+                                               // the debugger on make 
uninstall
+                                       }
+                                       
                                        if (Directory.GetFiles 
(link_dir).Length == 0) {
                                                WriteLine ("Cleaning package 
directory, it is empty.");
                                                try {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to