[mono/mono-addins] d8637692: Fix commandline arguments for --all

"Ungureanu Marius ([email protected])" <[email protected]> Sat, 9 Nov 2013 11:02:40 +0000
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <000001423c872bc4-ff788810-7cae-411f-8f03-554a00c2d469-000000@email.amazonses.com>
   Branch: refs/heads/fixCommandline
     Home: https://github.com/mono/mono-addins
  Compare: https://github.com/mono/mono-addins/commit/d8637692af59

   Commit: d8637692af593c9d19bdde71067131733c647cb2
   Author: Ungureanu Marius <[email protected]> (Therzok)
     Date: 2013-11-09 11:00:48 GMT
      URL: https://github.com/mono/mono-addins/commit/d8637692af593c9d19bdde71067131733c647cb2

Fix commandline arguments for --all

Changed paths:
  M Mono.Addins.Setup/Mono.Addins.Setup/SetupTool.cs

Modified: Mono.Addins.Setup/Mono.Addins.Setup/SetupTool.cs
===================================================================
@@ -559,17 +559,19 @@ void PrintAddinInfo (string[] args)
 					continue;
 				}
 				AddinDescription desc = null;
-				if (File.Exists (args[0]))
-					desc = registry.GetAddinDescription (new Mono.Addins.ConsoleProgressStatus (verbose), args[0]);
-				else {
-					Addin addin = registry.GetAddin (args [0]);
-					if (addin != null)
-						desc = addin.Description;
+				if (!generateAll) {
+					if (File.Exists (args [0]))
+						desc = registry.GetAddinDescription (new Mono.Addins.ConsoleProgressStatus (verbose), args [0]);
+					else {
+						Addin addin = registry.GetAddin (args [0]);
+						if (addin != null)
+							desc = addin.Description;
+					}
+					if (desc == null)
+						throw new InstallException (string.Format ("Add-in '{0}' not found.", a));
+					if (desc != null)
+						addins.Add (desc);
 				}
-				if (desc == null)
-					throw new InstallException (string.Format ("Add-in '{0}' not found.", a));
-				if (desc != null)
-					addins.Add (desc);
 			}
 			
 			if (generateAll) {


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