From 919563fec049c5761019ad1c41e88fc797d80483 Mon Sep 17 00:00:00 2001 From: Dave Miller Date: Sat, 11 May 2024 14:03:05 -0400 Subject: [PATCH] Bug 1896247: Fix breakage from 5.1 upgrade check (#172) --- checksetup.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/checksetup.pl b/checksetup.pl index 0fdb2d538..0dbd95328 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -121,7 +121,8 @@ my $dbh = Bugzilla->dbh; # We want to catch if the user is trying to "upgrade" from 5.1 because # that's actually a downgrade and you can't do that. -my $bz51install = $dbh->bz_index_info('bz_schema', 'bz_schema_version_idx'); +my $bz51install; +eval { $bz51install = $dbh->bz_index_info('bz_schema', 'bz_schema_version_idx'); }; if ($bz51install) { require Bugzilla::Error; import Bugzilla::Error; -- 2.47.3