[Pkg-owncloud-commits] [owncloud] 04/20: [updater] mark failure in red
David Prévot
taffit at moszumanska.debian.org
Tue Aug 11 15:57:44 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit fba6ac505004c5d6a3fad5079bde2964302c0c9f
Author: Morris Jobke <hey at morrisjobke.de>
Date: Tue Jun 23 14:45:53 2015 +0200
[updater] mark failure in red
---
core/command/upgrade.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/core/command/upgrade.php b/core/command/upgrade.php
index 456d924..af3a021 100644
--- a/core/command/upgrade.php
+++ b/core/command/upgrade.php
@@ -92,7 +92,8 @@ class Upgrade extends Command {
function ($success) use($output, $updateStepEnabled, $self) {
$mode = $updateStepEnabled ? 'Update' : 'Update simulation';
$status = $success ? 'successful' : 'failed' ;
- $message = "<info>$mode $status</info>";
+ $type = $success ? 'info' : 'error';
+ $message = "<$type>$mode $status</$type>";
$output->writeln($message);
});
$updater->listen('\OC\Updater', 'dbUpgrade', function () use($output) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list