diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2011-08-16 03:42:15 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2011-08-16 03:42:15 +0200 |
commit | dc8850c0644e7f53cf4698eeef97b0312dbbbdf6 (patch) | |
tree | 74622b82e70d0c98552c3980a74d04679664ced6 /Bugzilla | |
parent | fe80341cb23b38b519465c648c7bebd95d1f58ce (diff) | |
download | bugzilla-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.pm | 5 |
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) { |