summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-07-04 06:45:30 +0200
committermkanat%bugzilla.org <>2006-07-04 06:45:30 +0200
commit6c1536df9efc8a92e1a266fe9153f5cb8bafafc1 (patch)
tree90ca26a211fb7953e6513dfd82ea86283306f883
parentd15c41c6916aa127a3099a09f592b05d418189b1 (diff)
downloadbugzilla-6c1536df9efc8a92e1a266fe9153f5cb8bafafc1.tar.gz
bugzilla-6c1536df9efc8a92e1a266fe9153f5cb8bafafc1.tar.xz
Bug 343189: checksetup.pl HASH reference error with 2.18.5 to 2.20.2/2.22 upgrade
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=bkor, a=justdave
-rwxr-xr-xchecksetup.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/checksetup.pl b/checksetup.pl
index fae291569..280b99aca 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -2271,7 +2271,8 @@ if (!$dbh->bz_column_info('bugs', 'lastdiffed')) {
# declared to be unique. Sure enough, somehow, I got 22 duplicated entries
# in my database. This code detects that, cleans up the duplicates, and
# then tweaks the table to declare the field to be unique. What a pain.
-if (!$dbh->bz_index_info('profiles', 'profiles_login_name_idx')->{TYPE}) {
+if (!$dbh->bz_index_info('profiles', 'profiles_login_name_idx') ||
+ !$dbh->bz_index_info('profiles', 'profiles_login_name_idx')->{TYPE}) {
print "Searching for duplicate entries in the profiles table ...\n";
while (1) {
# This code is weird in that it loops around and keeps doing this