summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Install
diff options
context:
space:
mode:
authorDave Miller <justdave@mozilla.com>2014-05-02 04:08:39 +0200
committerDave Miller <justdave@mozilla.com>2014-05-02 04:08:39 +0200
commit082cea0bf161689e2c45750d364c87b46dc87089 (patch)
treef115cd7acf16235936b783fdcfc777c5fcf701f7 /Bugzilla/Install
parent7c6963dd64b89fd63810d694da90762d7273aaf7 (diff)
downloadbugzilla-082cea0bf161689e2c45750d364c87b46dc87089.tar.gz
bugzilla-082cea0bf161689e2c45750d364c87b46dc87089.tar.xz
Bug 999296: make checksetup.pl not complain about having added new
values to localconfig when the answers were supplied by an answer file. r=LpSolit, a=justdave
Diffstat (limited to 'Bugzilla/Install')
-rw-r--r--Bugzilla/Install/Localconfig.pm10
1 files changed, 8 insertions, 2 deletions
diff --git a/Bugzilla/Install/Localconfig.pm b/Bugzilla/Install/Localconfig.pm
index d469e13ab..71a9c6ae0 100644
--- a/Bugzilla/Install/Localconfig.pm
+++ b/Bugzilla/Install/Localconfig.pm
@@ -222,14 +222,20 @@ sub update_localconfig {
# a 256-character string for site_wide_secret.
$value = undef if ($name eq 'site_wide_secret' and defined $value
and length($value) == 256);
-
+
if (!defined $value) {
- push(@new_vars, $name);
$var->{default} = &{$var->{default}} if ref($var->{default}) eq 'CODE';
if (exists $answer->{$name}) {
$localconfig->{$name} = $answer->{$name};
}
else {
+ # If the user did not supply an answers file, then they get
+ # notified about every variable that gets added. If there was
+ # an answer file, then we don't notify about site_wide_secret
+ # because we assume the intent was to auto-generate it anyway.
+ if (!scalar(keys %$answer) || $name ne 'site_wide_secret') {
+ push(@new_vars, $name);
+ }
$localconfig->{$name} = $var->{default};
}
}