]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Don't regenerate the shadow database until we're sure that our DB is
authorterry%mozilla.org <>
Sun, 30 Jan 2000 04:07:05 +0000 (04:07 +0000)
committerterry%mozilla.org <>
Sun, 30 Jan 2000 04:07:05 +0000 (04:07 +0000)
up to snuff with what processmail expects.

checksetup.pl

index 79ed8bb7918fbc9b37fb5d2d8b2fe62f009356f2..8bd430e42b8884afecdcf63e69e458e9675f56f4 100755 (executable)
@@ -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");
+}