From 2e36d6f2888467ded5f300f63dc160031df06d2b Mon Sep 17 00:00:00 2001 From: Tatsuhiko Miyagawa Date: Fri, 26 Apr 2024 12:11:39 -0700 Subject: [PATCH] update CPAN::Meta::Check in fatlib --- App-cpanminus/fatlib/CPAN/Meta/Check.pm | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/App-cpanminus/fatlib/CPAN/Meta/Check.pm b/App-cpanminus/fatlib/CPAN/Meta/Check.pm index b9a3c9160..6a13d2a0b 100644 --- a/App-cpanminus/fatlib/CPAN/Meta/Check.pm +++ b/App-cpanminus/fatlib/CPAN/Meta/Check.pm @@ -1,5 +1,6 @@ package CPAN::Meta::Check; -$CPAN::Meta::Check::VERSION = '0.014'; +# vi:noet:sts=2:sw=2:ts=2 +$CPAN::Meta::Check::VERSION = '0.018'; use strict; use warnings; @@ -8,14 +9,14 @@ our @EXPORT = qw//; our @EXPORT_OK = qw/check_requirements requirements_for verify_dependencies/; our %EXPORT_TAGS = (all => [ @EXPORT, @EXPORT_OK ] ); -use CPAN::Meta::Prereqs '2.132830'; +use CPAN::Meta::Prereqs 2.132830; use CPAN::Meta::Requirements 2.121; use Module::Metadata 1.000023; sub _check_dep { my ($reqs, $module, $dirs) = @_; - $module eq 'perl' and return ($reqs->accepts_module($module, $]) ? () : sprintf "Your Perl (%s) is not in the range '%s'", $], $reqs->requirements_for_module($module)); + return $reqs->accepts_module($module, $]) ? () : sprintf "Your Perl (%s) is not in the range '%s'", $], $reqs->requirements_for_module($module) if $module eq 'perl'; my $metadata = Module::Metadata->new_from_module($module, inc => $dirs); return "Module '$module' is not installed" if not defined $metadata; @@ -80,7 +81,7 @@ CPAN::Meta::Check - Verify requirements in a CPAN::Meta object =head1 VERSION -version 0.014 +version 0.018 =head1 SYNOPSIS @@ -114,8 +115,6 @@ This function returns a unified L -=for comment # vi:noet:sts=2:sw=2:ts=2 - =back =head1 AUTHOR