Merge pull request #25077 from nextcloud/backport/25034/stable20
[stable20] Make sure to do priority app upgrades first
This commit is contained in:
commit
48eea6f74b
|
@ -266,7 +266,6 @@ class Updater extends BasicEmitter {
|
|||
$this->upgradeAppStoreApps($autoDisabledApps, true);
|
||||
|
||||
// install new shipped apps on upgrade
|
||||
OC_App::loadApps(['authentication']);
|
||||
$errors = Installer::installShippedApps(true);
|
||||
foreach ($errors as $appId => $exception) {
|
||||
/** @var \Exception $exception */
|
||||
|
@ -372,7 +371,8 @@ class Updater extends BasicEmitter {
|
|||
$stacks[$pseudoOtherType][] = $appId;
|
||||
}
|
||||
}
|
||||
foreach ($stacks as $type => $stack) {
|
||||
foreach (array_merge($priorityTypes, [$pseudoOtherType]) as $type) {
|
||||
$stack = $stacks[$type];
|
||||
foreach ($stack as $appId) {
|
||||
if (\OC_App::shouldUpgrade($appId)) {
|
||||
$this->emit('\OC\Updater', 'appUpgradeStarted', [$appId, \OC_App::getAppVersion($appId)]);
|
||||
|
|
Loading…
Reference in New Issue