|
|
|
@ -99,7 +99,7 @@ class Installer {
|
|
|
|
* @param bool $allowUnstable Allow unstable releases
|
|
|
|
* @param bool $allowUnstable Allow unstable releases
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function updateAppstoreApp(string $appId, bool $allowUnstable = false): bool {
|
|
|
|
public function updateAppstoreApp(string $appId, bool $allowUnstable = false): bool {
|
|
|
|
if ($this->isUpdateAvailable($appId, $allowUnstable)) {
|
|
|
|
if ($this->isUpdateAvailable($appId, $allowUnstable) !== false) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
$this->downloadApp($appId, $allowUnstable);
|
|
|
|
$this->downloadApp($appId, $allowUnstable);
|
|
|
|
} catch (\Exception $e) {
|
|
|
|
} catch (\Exception $e) {
|
|
|
|
@ -108,7 +108,7 @@ class Installer {
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return OC_App::updateApp($appId);
|
|
|
|
return $this->appManager->upgradeApp($appId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
@ -475,8 +475,7 @@ class Installer {
|
|
|
|
$this->downloadApp($appId);
|
|
|
|
$this->downloadApp($appId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$this->installApp($appId);
|
|
|
|
$this->installApp($appId);
|
|
|
|
$app = new OC_App();
|
|
|
|
$this->appManager->enableApp($appId);
|
|
|
|
$app->enable($appId);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$bundles = json_decode($this->config->getAppValue('core', 'installed.bundles', json_encode([])), true);
|
|
|
|
$bundles = json_decode($this->config->getAppValue('core', 'installed.bundles', json_encode([])), true);
|
|
|
|
$bundles[] = $bundle->getIdentifier();
|
|
|
|
$bundles[] = $bundle->getIdentifier();
|
|
|
|
|