From: Vincent Pit Date: Thu, 3 Sep 2009 19:19:54 +0000 (+0200) Subject: Fix case of equality in version requirement X-Git-Tag: v0.08~6 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=54358a5a8da95bb7a4c4fa4094b8a9028ca13397;p=perl%2Fmodules%2FCPANPLUS-Dist-Gentoo.git Fix case of equality in version requirement 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 :( --- diff --git a/lib/CPANPLUS/Dist/Gentoo.pm b/lib/CPANPLUS/Dist/Gentoo.pm index 3d46f86..67d5832 100644 --- a/lib/CPANPLUS/Dist/Gentoo.pm +++ b/lib/CPANPLUS/Dist/Gentoo.pm @@ -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";