From 2d5cb2eba0967e0e00b8e76cb7442e6e2a6abaab Mon Sep 17 00:00:00 2001 From: BlueWall Date: Thu, 26 Jul 2012 13:24:10 -0400 Subject: [PATCH] Add some feedback at the console --- .../Services/IntegrationService/IntegrationServiceBase.cs | 5 ++++- OpenSim/Services/IntegrationService/PluginManager.cs | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/OpenSim/Services/IntegrationService/IntegrationServiceBase.cs b/OpenSim/Services/IntegrationService/IntegrationServiceBase.cs index 75d91d04d7..281d0c741b 100644 --- a/OpenSim/Services/IntegrationService/IntegrationServiceBase.cs +++ b/OpenSim/Services/IntegrationService/IntegrationServiceBase.cs @@ -161,13 +161,16 @@ namespace OpenSim.Services.IntegrationService } AddinManager.Initialize(RegistryLocation); + AddinManager.Registry.Update(); AddinManager.AddinLoaded += on_addinloaded_; AddinManager.AddinLoadError += on_addinloaderror_; AddinManager.AddinUnloaded += HandleAddinManagerAddinUnloaded; + + // Installed extensions are queried here and cause the registered events to fire AddinManager.AddExtensionNodeHandler("/OpenSim/IntegrationService", OnExtensionChanged); - AddinManager.Registry.Update(); + } } diff --git a/OpenSim/Services/IntegrationService/PluginManager.cs b/OpenSim/Services/IntegrationService/PluginManager.cs index a67d5edfaf..4c1db4bc6b 100644 --- a/OpenSim/Services/IntegrationService/PluginManager.cs +++ b/OpenSim/Services/IntegrationService/PluginManager.cs @@ -108,12 +108,15 @@ namespace OpenSim.Services.IntegrationService Addin addin = m_Registry.GetAddin(aentry.Addin.Id); m_Registry.DisableAddin(addin.Id); addin.Enabled = false; + + MainConsole.Instance.Output("Installation Success"); ListInstalledAddins(out res); result = res; return true; } else - { + { + MainConsole.Instance.Output("Installation Failed"); result = res; return false; } @@ -142,6 +145,7 @@ namespace OpenSim.Services.IntegrationService addin.Enabled = false; IProgressStatus ps = new ConsoleProgressStatus(false); Uninstall(ps, addin.Id); + MainConsole.Instance.Output("Uninstall Success - restart to complete operation"); return; }