2004-05-14 Todd Berman <tberman@sevenl.net>
authorTodd Berman <tberman@mono-cvs.ximian.com>
Fri, 14 May 2004 22:21:24 +0000 (22:21 -0000)
committerTodd Berman <tberman@mono-cvs.ximian.com>
Fri, 14 May 2004 22:21:24 +0000 (22:21 -0000)
        * gacutil.cs: Remove old file/symlink, thanks urs.

svn path=/trunk/mcs/; revision=27432

mcs/tools/gacutil/ChangeLog
mcs/tools/gacutil/gacutil.cs

index 1d96065acaf2c1ff7456ad6d7c3127e5d07d258f..b85db0a959a7be5ca796d344da56df176905c098 100644 (file)
@@ -1,3 +1,7 @@
+2004-05-14  Todd Berman  <tberman@sevenl.net>
+
+       * gacutil.cs: Remove old file/symlink, thanks urs. 
+
 2004-05-14  Jackson Harper  <jackson@ximian.com>
 
        * gacutil.cs: Always install the package files.
index f2c1d9fc6c8dc7b7761a80ec85c451bfb84b6c12..d7c39c3047eb5fd6d56d6a191706c64e703baa90 100644 (file)
@@ -347,6 +347,9 @@ namespace Mono.Tools
                        if (package_name != String.Empty) {
                                string ref_file = libdir + package_name +
                                                Path.DirectorySeparatorChar + filename;
+                               if (File.Exists (ref_file)) {
+                                       File.Delete (ref_file);
+                               }
                                if (Path.DirectorySeparatorChar == '/') {
                                        try {
                                                Directory.CreateDirectory (libdir + package_name);
@@ -355,7 +358,7 @@ namespace Mono.Tools
                                        symlink (linkPath + an.Name + ".dll", ref_file);
                                } else {
                                        
-                                       File.Copy (path, ref_file, true);
+                                       File.Copy (path, ref_file);
                                }
                                Console.WriteLine ("Package exported to: " + libdir + package_name);
                        }