diff options
author | jocuri%softhome.net <> | 2004-12-27 19:16:50 +0100 |
---|---|---|
committer | jocuri%softhome.net <> | 2004-12-27 19:16:50 +0100 |
commit | ba8dc6e806a43354e443a86abed702098d43807f (patch) | |
tree | d71fa24ee8a6c4b7a37dc3c2b747d5419dec05e0 | |
parent | 77685016dc35f13c83d11a43a0c2a22d6df91af4 (diff) | |
download | bugzilla-ba8dc6e806a43354e443a86abed702098d43807f.tar.gz bugzilla-ba8dc6e806a43354e443a86abed702098d43807f.tar.xz |
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 <wurblzap@gmail.com>, r=jake, a=justdave.
-rwxr-xr-x | checksetup.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/checksetup.pl b/checksetup.pl index 18c65ba98..e352e6621 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -3866,7 +3866,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"); @@ -3893,8 +3893,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; @@ -3907,7 +3907,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; } } |