summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/command/upgrade.php9
-rw-r--r--lib/private/updater.php6
2 files changed, 15 insertions, 0 deletions
diff --git a/core/command/upgrade.php b/core/command/upgrade.php
index cf376148a00..c4f724d7e0a 100644
--- a/core/command/upgrade.php
+++ b/core/command/upgrade.php
@@ -168,6 +168,15 @@ class Upgrade extends Command {
$output->writeln("<error>$message</error>");
});
+ if(OutputInterface::VERBOSITY_NORMAL < $output->getVerbosity()) {
+ $updater->listen('\OC\Updater', 'repairInfo', function ($message) use($output) {
+ $output->writeln('<info>Repair info: ' . $message . '</info>');
+ });
+ $updater->listen('\OC\Updater', 'repairStep', function ($message) use($output) {
+ $output->writeln('<info>Repair step: ' . $message . '</info>');
+ });
+ }
+
$success = $updater->upgrade();
$this->postUpgradeCheck($input, $output);
diff --git a/lib/private/updater.php b/lib/private/updater.php
index 00c6569a52f..b011cf147e3 100644
--- a/lib/private/updater.php
+++ b/lib/private/updater.php
@@ -238,6 +238,12 @@ class Updater extends BasicEmitter {
$repair->listen('\OC\Repair', 'error', function ($description) {
$this->emit('\OC\Updater', 'repairError', array($description));
});
+ $repair->listen('\OC\Repair', 'info', function ($description) {
+ $this->emit('\OC\Updater', 'repairInfo', array($description));
+ });
+ $repair->listen('\OC\Repair', 'step', function ($description) {
+ $this->emit('\OC\Updater', 'repairStep', array($description));
+ });
}
/**