Add some feedback at the console
parent
276d882ad3
commit
2d5cb2eba0
|
@ -161,13 +161,16 @@ namespace OpenSim.Services.IntegrationService
|
||||||
}
|
}
|
||||||
|
|
||||||
AddinManager.Initialize(RegistryLocation);
|
AddinManager.Initialize(RegistryLocation);
|
||||||
|
AddinManager.Registry.Update();
|
||||||
|
|
||||||
AddinManager.AddinLoaded += on_addinloaded_;
|
AddinManager.AddinLoaded += on_addinloaded_;
|
||||||
AddinManager.AddinLoadError += on_addinloaderror_;
|
AddinManager.AddinLoadError += on_addinloaderror_;
|
||||||
AddinManager.AddinUnloaded += HandleAddinManagerAddinUnloaded;
|
AddinManager.AddinUnloaded += HandleAddinManagerAddinUnloaded;
|
||||||
|
|
||||||
|
// Installed extensions are queried here and cause the registered events to fire
|
||||||
AddinManager.AddExtensionNodeHandler("/OpenSim/IntegrationService", OnExtensionChanged);
|
AddinManager.AddExtensionNodeHandler("/OpenSim/IntegrationService", OnExtensionChanged);
|
||||||
|
|
||||||
AddinManager.Registry.Update();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,12 +108,15 @@ namespace OpenSim.Services.IntegrationService
|
||||||
Addin addin = m_Registry.GetAddin(aentry.Addin.Id);
|
Addin addin = m_Registry.GetAddin(aentry.Addin.Id);
|
||||||
m_Registry.DisableAddin(addin.Id);
|
m_Registry.DisableAddin(addin.Id);
|
||||||
addin.Enabled = false;
|
addin.Enabled = false;
|
||||||
|
|
||||||
|
MainConsole.Instance.Output("Installation Success");
|
||||||
ListInstalledAddins(out res);
|
ListInstalledAddins(out res);
|
||||||
result = res;
|
result = res;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
MainConsole.Instance.Output("Installation Failed");
|
||||||
result = res;
|
result = res;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -142,6 +145,7 @@ namespace OpenSim.Services.IntegrationService
|
||||||
addin.Enabled = false;
|
addin.Enabled = false;
|
||||||
IProgressStatus ps = new ConsoleProgressStatus(false);
|
IProgressStatus ps = new ConsoleProgressStatus(false);
|
||||||
Uninstall(ps, addin.Id);
|
Uninstall(ps, addin.Id);
|
||||||
|
MainConsole.Instance.Output("Uninstall Success - restart to complete operation");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue