Bug fixes:

- properly detect missing dependencies when deploying extensions from the Hub (and not only when deploying a 2nd time an extension, cf bug n°1284).
- setup hangs when upgrading to 2.4.1 with some "old" extensions in the "extensions" folder.

SVN:trunk[5290]
This commit is contained in:
Denis Flaven
2018-01-23 10:37:50 +00:00
parent 93526c8a44
commit 63ba267da0
3 changed files with 32 additions and 22 deletions

View File

@@ -415,11 +415,7 @@ class RunTimeEnvironment
// mark as (automatically) chosen alll the "remote" modules present in the
// target environment (data/<target-env>-modules)
// The actual choices will be recorded by RecordInstallation below
$this->oExtensionsMap = new iTopExtensionsMap($this->sTargetEnv);
foreach($aExtraDirs as $sDir)
{
$this->oExtensionsMap->ReadDir($sDir, iTopExtension::SOURCE_REMOTE);
}
$this->oExtensionsMap = new iTopExtensionsMap($this->sTargetEnv, true, $aExtraDirs);
$this->oExtensionsMap->LoadChoicesFromDatabase($oSourceConfig);
foreach($this->oExtensionsMap->GetAllExtensions() as $oExtension)
{