diff options
author | Frédéric Buclin <LpSolit@netscape.net> | 2024-11-14 01:00:42 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@netscape.net> | 2024-11-14 01:00:42 +0100 |
commit | 1737588547c8ff5e63aaeac3e7964934bffa17ef (patch) | |
tree | ddba14b1458f46489950aaf1c73b5c6df50c273a /Bugzilla/DB.pm | |
parent | b61f723cb60284ec6a5f1349d13bcedb821d6f3c (diff) | |
parent | 152ebcebd590ed3a60d8c100453e01a0fe175a51 (diff) | |
download | bugs-1737588547c8ff5e63aaeac3e7964934bffa17ef.tar bugs-1737588547c8ff5e63aaeac3e7964934bffa17ef.tar.gz bugs-1737588547c8ff5e63aaeac3e7964934bffa17ef.tar.bz2 bugs-1737588547c8ff5e63aaeac3e7964934bffa17ef.tar.xz bugs-1737588547c8ff5e63aaeac3e7964934bffa17ef.zip |
Diffstat (limited to 'Bugzilla/DB.pm')
-rw-r--r-- | Bugzilla/DB.pm | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm index 5bc83f9d6..f59a32feb 100644 --- a/Bugzilla/DB.pm +++ b/Bugzilla/DB.pm @@ -204,17 +204,33 @@ sub bz_check_server_version { $self->disconnect; my $sql_want = $db->{db_version}; + my $sql_dontwant = exists $db->{db_blocklist} ? $db->{db_blocklist} : []; my $version_ok = vers_cmp($sql_vers, $sql_want) > -1 ? 1 : 0; + my $blocklisted; + if ($version_ok) { + $blocklisted = grep($sql_vers =~ /$_/, @$sql_dontwant); + $version_ok = 0 if $blocklisted; + } my $sql_server = $db->{name}; if ($output) { Bugzilla::Install::Requirements::_checking_for({ package => $sql_server, wanted => $sql_want, - found => $sql_vers, ok => $version_ok }); + found => $sql_vers, ok => $version_ok, + blocklisted => $blocklisted }); } # Check what version of the database server is installed and let # the user know if the version is too old to be used with Bugzilla. + if ($blocklisted) { + die <<EOT; + +Your $sql_server v$sql_vers is blocklisted. Please check the +release notes for details or try a different database engine +or version. + +EOT + } if (!$version_ok) { die <<EOT; |