From afe30321a8c67892b8286b497eb12ad8472763f7 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Wed, 11 Jan 2012 00:00:53 +0100 Subject: Bug 716227: When checksetup.pl tells the admin that he should edit variables in localconfig, the message should be red r=timello a=LpSolit --- Bugzilla/Install/Localconfig.pm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Install/Localconfig.pm b/Bugzilla/Install/Localconfig.pm index 1ee7aca67..1544e6fac 100644 --- a/Bugzilla/Install/Localconfig.pm +++ b/Bugzilla/Install/Localconfig.pm @@ -32,12 +32,13 @@ 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 IO::File; use Safe; +use Term::ANSIColor; use base qw(Exporter); @@ -274,8 +275,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; } -- cgit v1.2.3-24-g4f1b