summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-01-10 23:54:39 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2012-01-10 23:54:39 +0100
commit70ad05e50fda80579c56d2c02258536a5a2af975 (patch)
treeac32da889acba893d4eabd4d941acd7188ffd832 /Bugzilla
parent3ce5a41d0593e97692d89c9a6f553053edfda4dc (diff)
downloadbugzilla-70ad05e50fda80579c56d2c02258536a5a2af975.tar.gz
bugzilla-70ad05e50fda80579c56d2c02258536a5a2af975.tar.xz
Bug 716227: When checksetup.pl tells the admin that he should edit variables in localconfig, the message should be red
r=timello a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Install/Localconfig.pm9
1 files changed, 6 insertions, 3 deletions
diff --git a/Bugzilla/Install/Localconfig.pm b/Bugzilla/Install/Localconfig.pm
index 2f1a8d527..97dc17d2a 100644
--- a/Bugzilla/Install/Localconfig.pm
+++ b/Bugzilla/Install/Localconfig.pm
@@ -32,11 +32,12 @@ use strict;
use Bugzilla::Constants;
use Bugzilla::Install::Util qw(bin_loc install_string);
-use Bugzilla::Util qw(generate_random_password);
+use Bugzilla::Util qw(generate_random_password wrap_hard);
use Data::Dumper;
use File::Basename qw(dirname);
use Safe;
+use Term::ANSIColor;
use base qw(Exporter);
@@ -273,8 +274,10 @@ sub update_localconfig {
if (@new_vars) {
my $newstuff = join(', ', @new_vars);
- print "\n", install_string('lc_new_vars',
- { localconfig => $filename, new_vars => $newstuff }), "\n";
+ print "\n";
+ print colored(install_string('lc_new_vars', { localconfig => $filename,
+ new_vars => wrap_hard($newstuff, 70) }),
+ COLOR_ERROR), "\n";
exit;
}