Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > c15e17b19a0983338b19090849ff2e3e > files > 4

bugzilla-4.0.2-7.1.mga1.src.rpm

Index: Bugzilla/Install/Requirements.pm
===================================================================
--- Bugzilla/Install/Requirements.pm
+++ Bugzilla/Install/Requirements.pm	2011-08-21 15:01:25.763864040 +0200
@@ -698,8 +698,9 @@
     # 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) {