X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FCPANPLUS-Dist-Gentoo.git;a=blobdiff_plain;f=lib%2FCPANPLUS%2FDist%2FGentoo.pm;h=22059a90b65ce689f5ea391267da16a61c9276b4;hp=72450d70784f488015170341ff0f948df60a4d87;hb=192c16f35be72d6b51e01855a15905313d407814;hpb=49b98e4e449f39ffddf4278def568afb5c20d6db diff --git a/lib/CPANPLUS/Dist/Gentoo.pm b/lib/CPANPLUS/Dist/Gentoo.pm index 72450d7..22059a9 100644 --- a/lib/CPANPLUS/Dist/Gentoo.pm +++ b/lib/CPANPLUS/Dist/Gentoo.pm @@ -444,7 +444,7 @@ sub _cpan2portage { my @ebuilds = glob catfile($portdir, $category, $atom,"$atom-*.ebuild"); next unless @ebuilds; - if (defined $version) { + if (defined $ver) { # implies that $version is defined for (@ebuilds) { next unless /\Q$atom\E-v?([\d._]+).*?\.ebuild$/; my $eb_ver = eval { version->new($1) };