From: Vincent Pit Date: Thu, 3 Sep 2009 18:45:14 +0000 (+0200) Subject: Don't die if the prerequisite couldn't be found in the module tree X-Git-Tag: v0.08~7 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=b30b81fc02ead7625083e65bbfcd1927e7375b28;p=perl%2Fmodules%2FCPANPLUS-Dist-Gentoo.git Don't die if the prerequisite couldn't be found in the module tree It might be a non dual-lived core module, like Config. --- diff --git a/lib/CPANPLUS/Dist/Gentoo.pm b/lib/CPANPLUS/Dist/Gentoo.pm index a616e7e..3d46f86 100644 --- a/lib/CPANPLUS/Dist/Gentoo.pm +++ b/lib/CPANPLUS/Dist/Gentoo.pm @@ -270,7 +270,7 @@ sub prepare { for my $prereq (sort keys %$prereqs) { next if $prereq =~ /^perl(?:-|\z)/; my $obj = $int->module_tree($prereq); - return $FAIL->('Wrong module object') unless $obj; + next unless $obj; # Not in the module tree (e.g. Config) next if $obj->package_is_perl_core; { my $version;