From: jocuri%softhome.net <> Date: Mon, 27 Dec 2004 18:18:18 +0000 (+0000) Subject: Patch for bug 274650: checksetup flag fixup code shouldn't output text when all is... X-Git-Tag: bugzilla-2.18~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c99235773a05e3319b5486f795855c441a8018d;p=thirdparty%2Fbugzilla.git Patch for bug 274650: checksetup flag fixup code shouldn't output text when all is ok and the silent mode is on; patch by Marc Schumann , r=jake, a=justdave. --- diff --git a/checksetup.pl b/checksetup.pl index 8ec2cba897..d4bfd24288 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -3759,7 +3759,7 @@ if (TableExists("attachstatuses") && TableExists("attachstatusdefs")) { # 2004-12-13 Nick.Barnes@pobox.com bug 262268 # Check flag type names for spaces and commas, and rename them. if (TableExists("flagtypes")) { - print "Checking flag type names for spaces and commas...\n"; + print "Checking flag type names for spaces and commas...\n" unless $silent; # Get names and IDs which are broken. $sth = $dbh->prepare("SELECT name, id FROM flagtypes"); @@ -3786,8 +3786,8 @@ if (TableExists("flagtypes")) { if (length($tryflagname) > 50) { my $lastchanceflagname = (substr $tryflagname, 0, 47) . '...'; if (defined($flagtypes{$lastchanceflagname})) { - print " ... last attempt as \"$lastchanceflagname\" still failed.'\n"; - print "Rename the flag by hand and run checksetup.pl again.\n"; + print " ... last attempt as \"$lastchanceflagname\" still failed.'\n", + "Rename the flag by hand and run checksetup.pl again.\n"; die("Bad flag type name $flagname"); } $tryflagname = $lastchanceflagname; @@ -3800,7 +3800,7 @@ if (TableExists("flagtypes")) { } print "... done.\n"; } else { - print "... all flag type names are good.\n"; + print "... all flag type names are good.\n" unless $silent; } }