From 1ba7a2fbd6d5e96e32cbe7fec619ad8159cc1a54 Mon Sep 17 00:00:00 2001 From: Chris 'BinGOs' Williams Date: Mon, 25 Jul 2011 12:59:38 +0100 Subject: Update CPANPLUS to CPAN version 0.9109 [DELTA] Changes for 0.9109 Tue Jul 19 22:44:53 2011 ================================================ * Fix support for v-strings and x.y.z versions with v5.8.4 --- cpan/CPANPLUS/lib/CPANPLUS.pm | 2 +- cpan/CPANPLUS/lib/CPANPLUS/Internals.pm | 2 +- cpan/CPANPLUS/lib/CPANPLUS/Internals/Utils.pm | 4 +++- cpan/CPANPLUS/lib/CPANPLUS/Shell/Default.pm | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) (limited to 'cpan') diff --git a/cpan/CPANPLUS/lib/CPANPLUS.pm b/cpan/CPANPLUS/lib/CPANPLUS.pm index c51a2aa9f1..d4ab5f2ec7 100644 --- a/cpan/CPANPLUS/lib/CPANPLUS.pm +++ b/cpan/CPANPLUS/lib/CPANPLUS.pm @@ -13,7 +13,7 @@ BEGIN { use vars qw( @EXPORT @ISA $VERSION ); @EXPORT = qw( shell fetch get install ); @ISA = qw( Exporter ); - $VERSION = "0.9108"; #have to hardcode or cpan.org gets unhappy + $VERSION = "0.9109"; #have to hardcode or cpan.org gets unhappy } ### purely for backward compatibility, so we can call it from the commandline: diff --git a/cpan/CPANPLUS/lib/CPANPLUS/Internals.pm b/cpan/CPANPLUS/lib/CPANPLUS/Internals.pm index e3bb465d8e..e1d2f7a3ff 100644 --- a/cpan/CPANPLUS/lib/CPANPLUS/Internals.pm +++ b/cpan/CPANPLUS/lib/CPANPLUS/Internals.pm @@ -42,7 +42,7 @@ use vars qw[@ISA $VERSION]; CPANPLUS::Internals::Report ]; -$VERSION = "0.9108"; +$VERSION = "0.9109"; =pod diff --git a/cpan/CPANPLUS/lib/CPANPLUS/Internals/Utils.pm b/cpan/CPANPLUS/lib/CPANPLUS/Internals/Utils.pm index bf475c9a71..ba7c00a336 100644 --- a/cpan/CPANPLUS/lib/CPANPLUS/Internals/Utils.pm +++ b/cpan/CPANPLUS/lib/CPANPLUS/Internals/Utils.pm @@ -201,7 +201,9 @@ sub _version_to_number { check( $tmpl, \%hash ) or return; return $version if $version =~ /^\d*(?:\.\d+)?$/; - return eval { version->parse($1)->numify } if $version =~ /^(v?\d+(?:\.\d+(?:\.\d+)?)?)/; + if ( my ($vers) = $version =~ /^(v?\d+(?:\.\d+(?:\.\d+)?)?)/ ) { + return eval { version->parse($vers)->numify }; + } return '0.0'; } diff --git a/cpan/CPANPLUS/lib/CPANPLUS/Shell/Default.pm b/cpan/CPANPLUS/lib/CPANPLUS/Shell/Default.pm index f1a4b6f3ff..9c3c4a8e6d 100644 --- a/cpan/CPANPLUS/lib/CPANPLUS/Shell/Default.pm +++ b/cpan/CPANPLUS/lib/CPANPLUS/Shell/Default.pm @@ -26,7 +26,7 @@ local $Data::Dumper::Indent = 1; # for dumpering from ! BEGIN { use vars qw[ $VERSION @ISA ]; @ISA = qw[ CPANPLUS::Shell::_Base::ReadLine ]; - $VERSION = "0.9108"; + $VERSION = "0.9109"; } load CPANPLUS::Shell; -- cgit v1.2.1