summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-14 11:52:46 -0700
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-14 11:52:46 -0700
commit1c2902ecbdaab493cb0a4a2fe3e46a2739c0d0fc (patch)
tree86e2f93ae38723e3eafca40e37b23b8a70af720d /Bugzilla/Install.pm
parentBug 578308: Move the parsing of special fields and the creation of (diff)
downloadbugzilla-1c2902ecbdaab493cb0a4a2fe3e46a2739c0d0fc.tar.gz
bugzilla-1c2902ecbdaab493cb0a4a2fe3e46a2739c0d0fc.tar.bz2
bugzilla-1c2902ecbdaab493cb0a4a2fe3e46a2739c0d0fc.zip
Bug 578587: Make checksetup be way quieter when creating a new install
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'Bugzilla/Install.pm')
-rw-r--r--Bugzilla/Install.pm19
1 files changed, 18 insertions, 1 deletions
diff --git a/Bugzilla/Install.pm b/Bugzilla/Install.pm
index 9536f4645..ed604d029 100644
--- a/Bugzilla/Install.pm
+++ b/Bugzilla/Install.pm
@@ -174,12 +174,21 @@ use constant DEFAULT_COMPONENT => {
};
sub update_settings {
+ my $dbh = Bugzilla->dbh;
+ # If we're setting up settings for the first time, we want to be quieter.
+ my $any_settings = $dbh->selectrow_array(
+ 'SELECT 1 FROM setting ' . $dbh->sql_limit(1));
+ if (!$any_settings) {
+ print get_text('install_setting_setup'), "\n";
+ }
+
my %settings = %{SETTINGS()};
foreach my $setting (keys %settings) {
add_setting($setting,
$settings{$setting}->{options},
$settings{$setting}->{default},
- $settings{$setting}->{subclass});
+ $settings{$setting}->{subclass}, undef,
+ !$any_settings);
}
}
@@ -188,11 +197,19 @@ sub update_system_groups {
$dbh->bz_start_transaction();
+ # If there is no editbugs group, this is the first time we're
+ # adding groups.
+ my $editbugs_exists = new Bugzilla::Group({ name => 'editbugs' });
+ if (!$editbugs_exists) {
+ print get_text('install_groups_setup'), "\n";
+ }
+
# Create most of the system groups
foreach my $definition (SYSTEM_GROUPS) {
my $exists = new Bugzilla::Group({ name => $definition->{name} });
if (!$exists) {
$definition->{isbuggroup} = 0;
+ $definition->{silently} = !$editbugs_exists;
my $inherited_by = delete $definition->{inherited_by};
my $created = Bugzilla::Group->create($definition);
# Each group in inherited_by is automatically a member of this