Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2021-03-25 13:12:34 +0300
committerGitHub <noreply@github.com>2021-03-25 13:12:34 +0300
commitf97491eb8f13099a31a984477f67eb55b1f333f7 (patch)
tree423fe7a40012735398624fd3fb17df31d22f9a41 /core
parentfab7c84b922220d776f29a203fffdca93f01e68b (diff)
parent3388758d046584d1425897a9b3d311c2e88b65e4 (diff)
Merge pull request #26285 from nextcloud/techdebt/noid/cleanup-update-events
Remove event listener to udpate events that are not present anymore
Diffstat (limited to 'core')
-rw-r--r--core/Command/Upgrade.php12
-rw-r--r--core/ajax/update.php12
2 files changed, 0 insertions, 24 deletions
diff --git a/core/Command/Upgrade.php b/core/Command/Upgrade.php
index 7ab5fe8e5fd..9dc1c4642b5 100644
--- a/core/Command/Upgrade.php
+++ b/core/Command/Upgrade.php
@@ -203,12 +203,6 @@ class Upgrade extends Command {
$updater->listen('\OC\Updater', 'dbUpgrade', function () use ($output) {
$output->writeln('<info>Updated database</info>');
});
- $updater->listen('\OC\Updater', 'dbSimulateUpgradeBefore', function () use ($output) {
- $output->writeln('<info>Checking whether the database schema can be updated (this can take a long time depending on the database size)</info>');
- });
- $updater->listen('\OC\Updater', 'dbSimulateUpgrade', function () use ($output) {
- $output->writeln('<info>Checked database schema update</info>');
- });
$updater->listen('\OC\Updater', 'incompatibleAppDisabled', function ($app) use ($output) {
$output->writeln('<comment>Disabled incompatible app: ' . $app . '</comment>');
});
@@ -221,15 +215,9 @@ class Upgrade extends Command {
$updater->listen('\OC\Updater', 'checkAppStoreApp', function ($app) use ($output) {
$output->writeln('<info>Checked for update of app "' . $app . '" in appstore </info>');
});
- $updater->listen('\OC\Updater', 'appUpgradeCheckBefore', function () use ($output) {
- $output->writeln('<info>Checking updates of apps</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>");
});
- $updater->listen('\OC\Updater', 'appUpgradeCheck', function () use ($output) {
- $output->writeln('<info>Checked database schema update for apps</info>');
- });
$updater->listen('\OC\Updater', 'appUpgradeStarted', function ($app, $version) use ($output) {
$output->writeln("<info>Updating <$app> ...</info>");
});
diff --git a/core/ajax/update.php b/core/ajax/update.php
index 09931ec91e2..6e655f42841 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -162,15 +162,6 @@ if (\OCP\Util::needUpgrade()) {
$updater->listen('\OC\Updater', 'dbUpgrade', function () use ($eventSource, $l) {
$eventSource->send('success', $l->t('Updated database'));
});
- $updater->listen('\OC\Updater', 'dbSimulateUpgradeBefore', function () use ($eventSource, $l) {
- $eventSource->send('success', $l->t('Checking whether the database schema can be updated (this can take a long time depending on the database size)'));
- });
- $updater->listen('\OC\Updater', 'dbSimulateUpgrade', function () use ($eventSource, $l) {
- $eventSource->send('success', $l->t('Checked database schema update'));
- });
- $updater->listen('\OC\Updater', 'appUpgradeCheckBefore', function () use ($eventSource, $l) {
- $eventSource->send('success', $l->t('Checking updates of apps'));
- });
$updater->listen('\OC\Updater', 'checkAppStoreAppBefore', function ($app) use ($eventSource, $l) {
$eventSource->send('success', $l->t('Checking for update of app "%s" in appstore', [$app]));
});
@@ -183,9 +174,6 @@ if (\OCP\Util::needUpgrade()) {
$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]));
});
- $updater->listen('\OC\Updater', 'appUpgradeCheck', function () use ($eventSource, $l) {
- $eventSource->send('success', $l->t('Checked database schema update for apps'));
- });
$updater->listen('\OC\Updater', 'appUpgrade', function ($app, $version) use ($eventSource, $l) {
$eventSource->send('success', $l->t('Updated "%1$s" to %2$s', [$app, $version]));
});