diff options
author | David Golden <dagolden@cpan.org> | 2014-02-05 14:16:19 -0500 |
---|---|---|
committer | David Golden <dagolden@cpan.org> | 2014-02-05 14:16:19 -0500 |
commit | 74921e084804721ba28da48f5b849f41bdf0fb26 (patch) | |
tree | 412f1f4d213c14021032150081d4e8d1f7ed581d /dist | |
parent | b90b52e02806e8d17d0d3a7eb3284d08bbd19243 (diff) | |
download | perl-74921e084804721ba28da48f5b849f41bdf0fb26.tar.gz |
fix Module::CoreList::is_core version comparision
Diffstat (limited to 'dist')
-rw-r--r-- | dist/Module-CoreList/Makefile.PL | 1 | ||||
-rw-r--r-- | dist/Module-CoreList/lib/Module/CoreList.pm | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/dist/Module-CoreList/Makefile.PL b/dist/Module-CoreList/Makefile.PL index f95b29d7fb..abe12d9dda 100644 --- a/dist/Module-CoreList/Makefile.PL +++ b/dist/Module-CoreList/Makefile.PL @@ -19,6 +19,7 @@ WriteMakefile 'PREREQ_PM' => { 'Test::More' => '0', 'List::Util' => 0, + 'version' => 0.88, }, 'EXE_FILES' => [ _scripts() ], 'INSTALLDIRS' => ($] < 5.011 ? 'perl' : 'site'), diff --git a/dist/Module-CoreList/lib/Module/CoreList.pm b/dist/Module-CoreList/lib/Module/CoreList.pm index 828e2faef8..fb5e19a01c 100644 --- a/dist/Module-CoreList/lib/Module/CoreList.pm +++ b/dist/Module-CoreList/lib/Module/CoreList.pm @@ -3,6 +3,7 @@ use strict; use vars qw/$VERSION %released %version %families %upstream %bug_tracker %deprecated %delta/; use Module::CoreList::TieHashDelta; +use version; $VERSION = '3.06'; my $dumpinc = 0; @@ -9433,7 +9434,7 @@ sub is_core last RELEASE if $prn > $perl_version; next unless defined(my $next_module_version = $delta{$prn}->{changed}->{$module}); - return 1 if $next_module_version >= $module_version; + return 1 if version->parse($next_module_version) >= version->parse($module_version); } return 0; } |