Revert "Bug 17986 - Perl dependency evaluation incorrect"

This reverts commit e8230c189d.
This commit is contained in:
Mason James 2017-01-27 16:41:40 +13:00
parent adb4a249f9
commit 04f24a74a5
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ sub version_info {
for (sort keys(%{$PERL_DEPS})) {
my $pkg = $_; # $_ holds the string
eval "require $pkg";
my $pkg_version = $pkg && $pkg->can("VERSION") ? $pkg->VERSION : 0;
my $pkg_version = $params{'module'} && $params{'module'}->can("VERSION") ? $params{'module'}->VERSION : 0;
my $min_version = $PERL_DEPS->{$_}->{'min_ver'} // 0;
if ($@) {
push (@{$self->{'missing_pm'}}, {$_ => {cur_ver => 0, min_ver => $PERL_DEPS->{$_}->{'min_ver'}, required => $PERL_DEPS->{$_}->{'required'}, usage => $PERL_DEPS->{$_}->{'usage'}}});