summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2010-10-14 01:21:09 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2010-10-14 01:21:09 +0200
commit2b8ade66b986fffe2ebbbb4c6deda44f5b182bde (patch)
tree8ad9267b0f092f187b97537ce6bde45e651d9803
parent9ea6b6d34c9188172d3118314d33fed77d6dd63e (diff)
downloadbugzilla-2b8ade66b986fffe2ebbbb4c6deda44f5b182bde.tar.gz
bugzilla-2b8ade66b986fffe2ebbbb4c6deda44f5b182bde.tar.xz
Bug 593887: Perl 5.14 requires HTML::Parser 3.67 and DBI 1.614
r/a=mkanat
-rw-r--r--Bugzilla/Install/Requirements.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla/Install/Requirements.pm b/Bugzilla/Install/Requirements.pm
index 5d2b6c39f..0589c1a0f 100644
--- a/Bugzilla/Install/Requirements.pm
+++ b/Bugzilla/Install/Requirements.pm
@@ -126,7 +126,7 @@ sub REQUIRED_MODULES {
{
package => 'DBI',
module => 'DBI',
- version => '1.41'
+ version => (vers_cmp($perl_ver, '5.13.3') > -1) ? '1.614' : '1.41'
},
# 2.22 fixes various problems related to UTF8 strings in hash keys,
# as well as line endings on Windows.
@@ -165,6 +165,7 @@ sub REQUIRED_MODULES {
};
sub OPTIONAL_MODULES {
+ my $perl_ver = sprintf('%vd', $^V);
my @modules = (
{
package => 'GD',
@@ -273,7 +274,7 @@ sub OPTIONAL_MODULES {
# We need the 'utf8_mode' method of HTML::Parser, for HTML::Scrubber.
package => 'HTML-Parser',
module => 'HTML::Parser',
- version => '3.40',
+ version => (vers_cmp($perl_ver, '5.13.3') > -1) ? '3.67' : '3.40',
feature => ['html_desc'],
},
{