From 1c2902ecbdaab493cb0a4a2fe3e46a2739c0d0fc Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Wed, 14 Jul 2010 11:52:46 -0700 Subject: Bug 578587: Make checksetup be way quieter when creating a new install r=mkanat, a=mkanat (module owner) --- Bugzilla/Group.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Bugzilla/Group.pm') diff --git a/Bugzilla/Group.pm b/Bugzilla/Group.pm index a8786034b..eef0a70cd 100644 --- a/Bugzilla/Group.pm +++ b/Bugzilla/Group.pm @@ -389,8 +389,11 @@ sub create { my ($params) = @_; my $dbh = Bugzilla->dbh; - print get_text('install_group_create', { name => $params->{name} }) . "\n" - if Bugzilla->usage_mode == USAGE_MODE_CMDLINE; + my $silently = delete $params->{silently}; + if (Bugzilla->usage_mode == USAGE_MODE_CMDLINE and !$silently) { + print get_text('install_group_create', { name => $params->{name} }), + "\n"; + } $dbh->bz_start_transaction(); -- cgit v1.2.3-24-g4f1b