aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB.pm
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@netscape.net>2024-11-14 01:00:42 +0100
committerFrédéric Buclin <LpSolit@netscape.net>2024-11-14 01:00:42 +0100
commit1737588547c8ff5e63aaeac3e7964934bffa17ef (patch)
treeddba14b1458f46489950aaf1c73b5c6df50c273a /Bugzilla/DB.pm
parentb61f723cb60284ec6a5f1349d13bcedb821d6f3c (diff)
parent152ebcebd590ed3a60d8c100453e01a0fe175a51 (diff)
downloadbugs-1737588547c8ff5e63aaeac3e7964934bffa17ef.tar
bugs-1737588547c8ff5e63aaeac3e7964934bffa17ef.tar.gz
bugs-1737588547c8ff5e63aaeac3e7964934bffa17ef.tar.bz2
bugs-1737588547c8ff5e63aaeac3e7964934bffa17ef.tar.xz
bugs-1737588547c8ff5e63aaeac3e7964934bffa17ef.zip
Merge branch '5.0.4' of https://github.com/bugzilla/bugzillaHEADmaster
Diffstat (limited to 'Bugzilla/DB.pm')
-rw-r--r--Bugzilla/DB.pm18
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;