From: Vincent Pit Date: Wed, 15 Dec 2010 23:03:13 +0000 (+0100) Subject: Make ebuild versioned dependencies mirror exactly CPAN dependencies X-Git-Tag: v0.11~10 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=8059d98e61fddbdcfed701f6f63e4f309d6826f8;p=perl%2Fmodules%2FCPANPLUS-Dist-Gentoo.git Make ebuild versioned dependencies mirror exactly CPAN dependencies This removes the most hairiest part of the prerequisites filtering. --- diff --git a/lib/CPANPLUS/Dist/Gentoo.pm b/lib/CPANPLUS/Dist/Gentoo.pm index 6115b38..a1fe7b6 100644 --- a/lib/CPANPLUS/Dist/Gentoo.pm +++ b/lib/CPANPLUS/Dist/Gentoo.pm @@ -218,14 +218,7 @@ my $filter_prereqs = sub { next unless $obj; # Not in the module tree (e.g. Config) next if $obj->package_is_perl_core; - my $version; - if ($prereqs->{$prereq}) { - if ($obj->installed_version && $obj->installed_version < $obj->version) { - $version = $obj->installed_version; - } else { - $version = $obj->package_version; - } - } + my $version = $prereqs->{$prereq} || undef; push @requires, [ $obj->package_name, $version ]; }