summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-01-30 05:07:05 +0100
committerterry%mozilla.org <>2000-01-30 05:07:05 +0100
commit4efda1a448e41436ae95a43f6c41b8974a7d7f7d (patch)
treee4c9cac8b4d7505bc93aec878fd9b9d9c65df687 /checksetup.pl
parent6e5f52510a7a9423da6ba577ff2463f460d7f262 (diff)
downloadbugzilla-4efda1a448e41436ae95a43f6c41b8974a7d7f7d.tar.gz
bugzilla-4efda1a448e41436ae95a43f6c41b8974a7d7f7d.tar.xz
Don't regenerate the shadow database until we're sure that our DB is
up to snuff with what processmail expects.
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl13
1 files changed, 11 insertions, 2 deletions
diff --git a/checksetup.pl b/checksetup.pl
index 79ed8bb79..8bd430e42 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -1067,6 +1067,10 @@ sub DropField ($$)
}
+my $regenerateshadow = 0;
+
+
+
# 1999-05-12 Added a pref to control how much email you get. This needs a new
# column in the profiles table, so feed the following to mysql:
@@ -1308,8 +1312,7 @@ if (GetFieldDef('bugs', 'long_desc')) {
DropField('bugs', 'long_desc');
$dbh->do("UNLOCK TABLES");
- print "Now regenerating the shadow database for all bugs.\n";
- system("./processmail regenerate");
+ $regenerateshadow = 1;
}
@@ -1430,3 +1433,9 @@ AddField('namedqueries', 'linkinfooter', 'tinyint not null');
# AddField/DropField/ChangeFieldType/RenameField code above. This would then
# be honored by everyone who updates his Bugzilla installation.
#
+#
+# Final checks...
+if ($regenerateshadow) {
+ print "Now regenerating the shadow database for all bugs.\n";
+ system("./processmail regenerate");
+}