From: Frédéric Buclin Date: Tue, 16 Aug 2011 01:45:37 +0000 (+0200) Subject: Bug 678772: version.pm 0.92 and newer forbids negative values, making checksetup... X-Git-Tag: bugzilla-4.0.3~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=955cb5e928d343d436b3aa60455d41bdc3a97aab;p=thirdparty%2Fbugzilla.git Bug 678772: version.pm 0.92 and newer forbids negative values, making checksetup.pl to fail r/a=mkanat --- diff --git a/Bugzilla/Install/Requirements.pm b/Bugzilla/Install/Requirements.pm index 3238246419..46790dd8f9 100644 --- a/Bugzilla/Install/Requirements.pm +++ b/Bugzilla/Install/Requirements.pm @@ -698,8 +698,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) {