]> git.vpit.fr Git - perl/modules/CPANPLUS-Dist-Gentoo.git/commitdiff
Fix case of equality in version requirement
authorVincent Pit <vince@profvince.com>
Thu, 3 Sep 2009 19:19:54 +0000 (21:19 +0200)
committerVincent Pit <vince@profvince.com>
Thu, 3 Sep 2009 19:19:54 +0000 (21:19 +0200)
If we have an ebuild for the exact version we require, it's good. I really
wonder how could I let this one slip. Oh wait, I know : no tests :(

lib/CPANPLUS/Dist/Gentoo.pm

index 3d46f868d1aa0035a73e074ffb3926dd5af5a5fe..67d58324a0ae72e717fc8f083e700d03f6c7ec83 100644 (file)
@@ -465,7 +465,7 @@ sub _cpan2portage {
      my ($eb_ver) = /\Q$atom\E-v?([\d._pr-]+).*?\.ebuild$/;
      return ">=$category/$atom-$ver"
             if  defined $eb_ver
-            and CPANPLUS::Dist::Gentoo::Maps::version_gcmp($eb_ver, $ver) > 0;
+            and CPANPLUS::Dist::Gentoo::Maps::version_gcmp($eb_ver, $ver) >= 0;
     }
    } else {
     return "$category/$atom";