mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #29708 from nextcloud/fix/no-app-update-no-verbose
Do not print verbose info about app updates if there are none
This commit is contained in:
commit
2631f48c44
3 changed files with 2 additions and 14 deletions
|
|
@ -204,15 +204,9 @@ class Upgrade extends Command {
|
|||
$updater->listen('\OC\Updater', 'incompatibleAppDisabled', function ($app) use ($output) {
|
||||
$output->writeln('<comment>Disabled incompatible app: ' . $app . '</comment>');
|
||||
});
|
||||
$updater->listen('\OC\Updater', 'checkAppStoreAppBefore', function ($app) use ($output) {
|
||||
$output->writeln('<info>Checking for update of app ' . $app . ' in appstore</info>');
|
||||
});
|
||||
$updater->listen('\OC\Updater', 'upgradeAppStoreApp', function ($app) use ($output) {
|
||||
$output->writeln('<info>Update app ' . $app . ' from App Store</info>');
|
||||
});
|
||||
$updater->listen('\OC\Updater', 'checkAppStoreApp', function ($app) use ($output) {
|
||||
$output->writeln('<info>Checked for update of app "' . $app . '" in App Store </info>');
|
||||
});
|
||||
$updater->listen('\OC\Updater', 'appSimulateUpdate', function ($app) use ($output) {
|
||||
$output->writeln("<info>Checking whether the database schema for <$app> can be updated (this can take a long time depending on the database size)</info>");
|
||||
});
|
||||
|
|
|
|||
|
|
@ -160,15 +160,9 @@ if (\OCP\Util::needUpgrade()) {
|
|||
$updater->listen('\OC\Updater', 'dbUpgrade', function () use ($eventSource, $l) {
|
||||
$eventSource->send('success', $l->t('Updated database'));
|
||||
});
|
||||
$updater->listen('\OC\Updater', 'checkAppStoreAppBefore', function ($app) use ($eventSource, $l) {
|
||||
$eventSource->send('success', $l->t('Checking for update of app "%s" in App Store', [$app]));
|
||||
});
|
||||
$updater->listen('\OC\Updater', 'upgradeAppStoreApp', function ($app) use ($eventSource, $l) {
|
||||
$eventSource->send('success', $l->t('Update app "%s" from App Store', [$app]));
|
||||
});
|
||||
$updater->listen('\OC\Updater', 'checkAppStoreApp', function ($app) use ($eventSource, $l) {
|
||||
$eventSource->send('success', $l->t('Checked for update of app "%s" in App Store', [$app]));
|
||||
});
|
||||
$updater->listen('\OC\Updater', 'appSimulateUpdate', function ($app) use ($eventSource, $l) {
|
||||
$eventSource->send('success', $l->t('Checking whether the database schema for %s can be updated (this can take a long time depending on the database size)', [$app]));
|
||||
});
|
||||
|
|
|
|||
|
|
@ -545,13 +545,13 @@ class Updater extends BasicEmitter {
|
|||
$log->info('\OC\Updater::incompatibleAppDisabled: Disabled incompatible app: ' . $app, ['app' => 'updater']);
|
||||
});
|
||||
$this->listen('\OC\Updater', 'checkAppStoreAppBefore', function ($app) use ($log) {
|
||||
$log->info('\OC\Updater::checkAppStoreAppBefore: Checking for update of app "' . $app . '" in appstore', ['app' => 'updater']);
|
||||
$log->debug('\OC\Updater::checkAppStoreAppBefore: Checking for update of app "' . $app . '" in appstore', ['app' => 'updater']);
|
||||
});
|
||||
$this->listen('\OC\Updater', 'upgradeAppStoreApp', function ($app) use ($log) {
|
||||
$log->info('\OC\Updater::upgradeAppStoreApp: Update app "' . $app . '" from appstore', ['app' => 'updater']);
|
||||
});
|
||||
$this->listen('\OC\Updater', 'checkAppStoreApp', function ($app) use ($log) {
|
||||
$log->info('\OC\Updater::checkAppStoreApp: Checked for update of app "' . $app . '" in appstore', ['app' => 'updater']);
|
||||
$log->debug('\OC\Updater::checkAppStoreApp: Checked for update of app "' . $app . '" in appstore', ['app' => 'updater']);
|
||||
});
|
||||
$this->listen('\OC\Updater', 'appSimulateUpdate', function ($app) use ($log) {
|
||||
$log->info('\OC\Updater::appSimulateUpdate: Checking whether the database schema for <' . $app . '> can be updated (this can take a long time depending on the database size)', ['app' => 'updater']);
|
||||
|
|
|
|||
Loading…
Reference in a new issue