Author: lluis
Date: 2008-01-17 11:54:18 -0500 (Thu, 17 Jan 2008)
New Revision: 93175

Modified:
   trunk/monodevelop/main/src/core/MonoDevelop.Core/ChangeLog
   trunk/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/Runtime.cs
Log:
* MonoDevelop.Core/Runtime.cs: Get add-ins from a version specific
  repository.

Modified: trunk/monodevelop/main/src/core/MonoDevelop.Core/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/core/MonoDevelop.Core/ChangeLog  2008-01-17 
16:53:44 UTC (rev 93174)
+++ trunk/monodevelop/main/src/core/MonoDevelop.Core/ChangeLog  2008-01-17 
16:54:18 UTC (rev 93175)
@@ -1,3 +1,8 @@
+2008-01-17  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
+
+       * MonoDevelop.Core/Runtime.cs: Get add-ins from a version specific
+         repository.
+
 2008-01-16  Michael Hutchinson <[EMAIL PROTECTED]> 
 
        * Makefile.am, MonoDevelop.Core.mdp, MonoDevelop.Core/GettextCatalog.cs,

Modified: 
trunk/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/Runtime.cs
===================================================================
--- 
trunk/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/Runtime.cs    
    2008-01-17 16:53:44 UTC (rev 93174)
+++ 
trunk/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/Runtime.cs    
    2008-01-17 16:54:18 UTC (rev 93175)
@@ -70,7 +70,15 @@
                        if (updateAddinRegistry)
                                AddinManager.Registry.Update (null);
                        setupService = new SetupService (AddinManager.Registry);
-                       setupService.Repositories.RegisterRepository (null, 
"http://go-mono.com/md/main.mrep";, false);
+                       
+                       string version = AddinManager.CurrentAddin.Version;
+                       
+                       AddinRepository[] repos = 
setupService.Repositories.GetRepositories ();
+                       foreach (AddinRepository rep in repos) {
+                               if (rep.Url.StartsWith 
("http://go-mono.com/md/";))
+                                       
setupService.Repositories.RemoveRepository (rep.Url);
+                       }
+                       setupService.Repositories.RegisterRepository (null, 
"http://go-mono.com/md/"; + AddinManager.CurrentAddin.Version + "/main.mrep", 
false);
 
                        ServiceManager.Initialize ();
                }

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

Reply via email to