~ubuntu-branches/ubuntu/natty/monodevelop/natty

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Core/MonoDevelop.Core/Runtime.cs

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2008-03-29 23:36:33 UTC
  • mto: (1.5.1 sid)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: james.westby@ubuntu.com-20080329233633-l550uuwvfh1e68at
Tags: upstream-1.0+dfsg
ImportĀ upstreamĀ versionĀ 1.0+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
                        AddinManager.AddinLoaded += OnLoad;
62
62
                        AddinManager.AddinUnloaded += OnUnload;
63
63
                        
64
 
                        string configDir = System.IO.Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.Personal), ".config");
65
 
                        configDir = System.IO.Path.Combine (configDir, "MonoDevelop");
66
 
                        
67
 
                        AddinManager.Initialize (configDir);
 
64
                        AddinManager.Initialize (MonoDevelop.Core.PropertyService.ConfigPath);
68
65
                        AddinManager.InitializeDefaultLocalizer (new DefaultAddinLocalizer ());
69
66
                        
70
67
                        if (updateAddinRegistry)
71
68
                                AddinManager.Registry.Update (null);
72
69
                        setupService = new SetupService (AddinManager.Registry);
73
 
                        setupService.Repositories.RegisterRepository (null, "http://go-mono.com/md/main.mrep", false);
 
70
                        
 
71
                        string mainRep = "http://go-mono.com/md/" + AddinManager.CurrentAddin.Version + "/main.mrep";
 
72
                        
 
73
                        AddinRepository[] repos = setupService.Repositories.GetRepositories ();
 
74
                        foreach (AddinRepository rep in repos) {
 
75
                                if (rep.Url.StartsWith ("http://go-mono.com/md/") && rep.Url != mainRep)
 
76
                                        setupService.Repositories.RemoveRepository (rep.Url);
 
77
                        }
 
78
                        setupService.Repositories.RegisterRepository (null, mainRep, false);
74
79
 
75
80
                        ServiceManager.Initialize ();
76
81
                }