[Pkg-owncloud-commits] [owncloud] 19/58: [updater] mark failure in red
David Prévot
taffit at moszumanska.debian.org
Tue Aug 11 15:58:05 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v8.0.6
in repository owncloud.
commit ecaad05c63b78297b7b27e6d33063551d2c0e07f
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 0941386..d269d99 100644
--- a/core/command/upgrade.php
+++ b/core/command/upgrade.php
@@ -111,7 +111,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