Kaynağa Gözat

2004-05-17 Gonzalo Paniagua Javier <[email protected]>

	* gacutil.cs:
	(InstallAssembly): use Array.IndexOf to search for "/f", "-f" or
	"--force" instead of expecting it in a fixed place.

svn path=/trunk/mcs/; revision=27537
Gonzalo Paniagua Javier 21 yıl önce
ebeveyn
işleme
b71d0f0f70
2 değiştirilmiş dosya ile 8 ekleme ve 1 silme
  1. 6 0
      mcs/tools/gacutil/ChangeLog
  2. 2 1
      mcs/tools/gacutil/gacutil.cs

+ 6 - 0
mcs/tools/gacutil/ChangeLog

@@ -1,3 +1,9 @@
+2004-05-17  Gonzalo Paniagua Javier <[email protected]>
+
+	* gacutil.cs:
+	(InstallAssembly): use Array.IndexOf to search for "/f", "-f" or
+	"--force" instead of expecting it in a fixed place.
+
 2004-05-14  Todd Berman  <[email protected]>
 
 	* gacutil.cs: Remove old file/symlink, thanks urs. 

+ 2 - 1
mcs/tools/gacutil/gacutil.cs

@@ -297,7 +297,8 @@ namespace Mono.Tools
 
 			bool force = false;
 
-			if (args.Length == 2 && (args[1] == "-f" || args[1] == "--force" || args[1] == "/f")) {
+			if (Array.IndexOf (args, "/f") != -1 || Array.IndexOf (args, "-f") != -1 ||
+			    Array.IndexOf (args, "--force") != -1) {
 				force = true;
 			}