Author: lluis
Date: 2008-01-17 11:55:53 -0500 (Thu, 17 Jan 2008)
New Revision: 93176

Modified:
   branches/monodevelop/main/1.0/src/core/MonoDevelop.Core/ChangeLog
   
branches/monodevelop/main/1.0/src/core/MonoDevelop.Core/MonoDevelop.Core/Runtime.cs
Log:
2008-01-17  Lluis Sanchez Gual <[EMAIL PROTECTED]> 

        * MonoDevelop.Core/Runtime.cs: Get add-ins from a version specific
          repository.



Modified: branches/monodevelop/main/1.0/src/core/MonoDevelop.Core/ChangeLog
===================================================================
--- branches/monodevelop/main/1.0/src/core/MonoDevelop.Core/ChangeLog   
2008-01-17 16:54:18 UTC (rev 93175)
+++ branches/monodevelop/main/1.0/src/core/MonoDevelop.Core/ChangeLog   
2008-01-17 16:55:53 UTC (rev 93176)
@@ -1,3 +1,8 @@
+2008-01-17  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
+
+       * MonoDevelop.Core/Runtime.cs: Get add-ins from a version specific
+         repository.
+
 2007-12-13  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
 
        * Makefile.am, MonoDevelop.Core.addin.xml, MonoDevelop.Core.mdp,

Modified: 
branches/monodevelop/main/1.0/src/core/MonoDevelop.Core/MonoDevelop.Core/Runtime.cs
===================================================================
--- 
branches/monodevelop/main/1.0/src/core/MonoDevelop.Core/MonoDevelop.Core/Runtime.cs
 2008-01-17 16:54:18 UTC (rev 93175)
+++ 
branches/monodevelop/main/1.0/src/core/MonoDevelop.Core/MonoDevelop.Core/Runtime.cs
 2008-01-17 16:55:53 UTC (rev 93176)
@@ -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