summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2011-08-16 03:42:15 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2011-08-16 03:42:15 +0200
commitdc8850c0644e7f53cf4698eeef97b0312dbbbdf6 (patch)
tree74622b82e70d0c98552c3980a74d04679664ced6 /Bugzilla
parentfe80341cb23b38b519465c648c7bebd95d1f58ce (diff)
downloadbugzilla-dc8850c0644e7f53cf4698eeef97b0312dbbbdf6.tar.gz
bugzilla-dc8850c0644e7f53cf4698eeef97b0312dbbbdf6.tar.xz
Bug 678772: version.pm 0.92 and newer forbids negative values, making checksetup.pl to fail
r/a=mkanat
Diffstat (limited to 'Bugzilla')
-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 ab696e235..577f78b44 100644
--- a/Bugzilla/Install/Requirements.pm
+++ b/Bugzilla/Install/Requirements.pm
@@ -724,8 +724,9 @@ sub _checking_for {
# show "ok" or "not found".
if (exists $params->{found}) {
my $found_string;
- # We do a string compare in case it's non-numeric.
- if ($found and $found eq "-1") {
+ # We do a string compare in case it's non-numeric. We make sure
+ # it's not a version object as negative versions are forbidden.
+ if ($found && !ref($found) && $found eq '-1') {
$found_string = install_string('module_not_found');
}
elsif ($found) {