From 04f24a74a55ea169223e0b26cceebe0200294684 Mon Sep 17 00:00:00 2001 From: Mason James Date: Fri, 27 Jan 2017 16:41:40 +1300 Subject: [PATCH] Revert "Bug 17986 - Perl dependency evaluation incorrect" This reverts commit e8230c189da00b3b68c04c354ecb7cc6cacb4ad8. --- C4/Installer/PerlModules.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Installer/PerlModules.pm b/C4/Installer/PerlModules.pm index 2a64826f43..9d8d1c8825 100644 --- a/C4/Installer/PerlModules.pm +++ b/C4/Installer/PerlModules.pm @@ -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'}}}); -- 2.39.5