From 5ff536b45ad6f9c4490a9d949353c6aeea26d7f1 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 23 Jun 2015 10:22:24 +0200 Subject: [upgrade] add verbosity check and show repair info & steps --- core/command/upgrade.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'core/command/upgrade.php') 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("$message"); }); + if(OutputInterface::VERBOSITY_NORMAL < $output->getVerbosity()) { + $updater->listen('\OC\Updater', 'repairInfo', function ($message) use($output) { + $output->writeln('Repair info: ' . $message . ''); + }); + $updater->listen('\OC\Updater', 'repairStep', function ($message) use($output) { + $output->writeln('Repair step: ' . $message . ''); + }); + } + $success = $updater->upgrade(); $this->postUpgradeCheck($input, $output); -- cgit v1.2.3