From: Dave Miller Date: Sat, 11 May 2024 18:03:05 +0000 (-0400) Subject: Bug 1896247: Fix breakage from 5.1 upgrade check (#172) X-Git-Tag: bugzilla-5.2~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=919563fec049c5761019ad1c41e88fc797d80483;p=thirdparty%2Fbugzilla.git Bug 1896247: Fix breakage from 5.1 upgrade check (#172) --- 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;