More work on commands

Install is working now
integration
BlueWall 2012-04-06 22:22:55 -04:00
parent 5509d981d4
commit b8eafc6280
1 changed files with 7 additions and 0 deletions

View File

@ -46,6 +46,7 @@ namespace OpenSim.Services.IntegrationService
internal PluginManager( AddinRegistry r): base (r)
{
m_Registry = r;
m_Registry.Update();
}
// public PluginManager(string registry_path)
@ -62,6 +63,8 @@ namespace OpenSim.Services.IntegrationService
IProgressStatus ps = new ConsoleProgressStatus(true);
m_Registry.Update(ps);
string name = Addin.GetIdName(args[1]);
string version = Addin.GetIdVersion(args[1]);
@ -78,7 +81,10 @@ namespace OpenSim.Services.IntegrationService
if(Install(ps, pack) == true)
{
m_Registry.Update(ps);
return "Install";
}
else
return "Bomb";
}
@ -88,6 +94,7 @@ namespace OpenSim.Services.IntegrationService
IProgressStatus ps = new ConsoleProgressStatus(true);
Addin addin = m_Registry.GetAddin(args[1]);
Uninstall(ps, addin.Id);
m_Registry.Rebuild(null);
return;
}