summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris 'BinGOs' Williams <chris@bingosnet.co.uk>2011-07-12 16:04:46 +0100
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>2011-07-12 16:04:46 +0100
commit09127a34482a01b8c6c1da4c8f716092df06820a (patch)
treeb7c7e235b05fda5b9c5b42e9b38c89c0e0ec539d
parentd31f9442648c20538ddb08f993cb54e434fb6554 (diff)
downloadperl-09127a34482a01b8c6c1da4c8f716092df06820a.tar.gz
Update CPANPLUS to CPAN version 0.9107
[DELTA] Changes for 0.9107 Tue Jul 12 15:22:14 2011 ================================================ * Add support for v-strings and x.y.z versions, using the version module. * Resolve [rt.cpan.org #69420] "type checking for CPANPLUS::Backend::RV::new is incorrect" * Resolve [rt.cpan.org #69203] "custom sources ignores timeout config option"
-rwxr-xr-xPorting/Maintainers.pl4
-rw-r--r--cpan/CPANPLUS/lib/CPANPLUS.pm2
-rw-r--r--cpan/CPANPLUS/lib/CPANPLUS/Backend.pm2
-rw-r--r--cpan/CPANPLUS/lib/CPANPLUS/Internals.pm2
-rw-r--r--cpan/CPANPLUS/lib/CPANPLUS/Internals/Source.pm5
-rw-r--r--cpan/CPANPLUS/lib/CPANPLUS/Internals/Utils.pm7
-rw-r--r--cpan/CPANPLUS/lib/CPANPLUS/Selfupdate.pm2
-rw-r--r--cpan/CPANPLUS/lib/CPANPLUS/Shell/Default.pm2
-rw-r--r--cpan/CPANPLUS/t/00_CPANPLUS-Internals-Utils.t16
-rw-r--r--pod/perldelta.pod2
10 files changed, 26 insertions, 18 deletions
diff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl
index 8c51685e23..dd80e3aef3 100755
--- a/Porting/Maintainers.pl
+++ b/Porting/Maintainers.pl
@@ -459,7 +459,7 @@ use File::Glob qw(:case);
'CPANPLUS' =>
{
'MAINTAINER' => 'kane',
- 'DISTRIBUTION' => 'BINGOS/CPANPLUS-0.9106.tar.gz',
+ 'DISTRIBUTION' => 'BINGOS/CPANPLUS-0.9107.tar.gz',
'FILES' => q[cpan/CPANPLUS],
'EXCLUDED' => [ qr{^inc/},
qr{^t/dummy-.*\.hidden$},
@@ -470,7 +470,7 @@ use File::Glob qw(:case);
t/031_CPANPLUS-Internals-Source-SQLite.t
t/032_CPANPLUS-Internals-Source-via-sqlite.t
},
- qw{ Makefile.PL },
+ qw{ Makefile.PL },
],
'CUSTOMIZED' => [ qw{ Makefile.PL } ],
'UPSTREAM' => 'cpan',
diff --git a/cpan/CPANPLUS/lib/CPANPLUS.pm b/cpan/CPANPLUS/lib/CPANPLUS.pm
index 7496688a2f..0f6607b678 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.9106"; #have to hardcode or cpan.org gets unhappy
+ $VERSION = "0.9107"; #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/Backend.pm b/cpan/CPANPLUS/lib/CPANPLUS/Backend.pm
index 0d945d5524..1ea888106b 100644
--- a/cpan/CPANPLUS/lib/CPANPLUS/Backend.pm
+++ b/cpan/CPANPLUS/lib/CPANPLUS/Backend.pm
@@ -397,7 +397,7 @@ for my $func (qw[fetch extract install readme files distributions]) {
return CPANPLUS::Backend::RV->new(
function => $func,
- ok => !$flag,
+ ok => ( !$flag ? 1 : 0 ),
rv => $href,
args => \%hash,
);
diff --git a/cpan/CPANPLUS/lib/CPANPLUS/Internals.pm b/cpan/CPANPLUS/lib/CPANPLUS/Internals.pm
index c882c933bd..f126e09f54 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.9106";
+$VERSION = "0.9107";
=pod
diff --git a/cpan/CPANPLUS/lib/CPANPLUS/Internals/Source.pm b/cpan/CPANPLUS/lib/CPANPLUS/Internals/Source.pm
index 342df63d51..b93cc1c96b 100644
--- a/cpan/CPANPLUS/lib/CPANPLUS/Internals/Source.pm
+++ b/cpan/CPANPLUS/lib/CPANPLUS/Internals/Source.pm
@@ -1210,10 +1210,11 @@ sub __update_custom_module_source {
### so add it explicitly.
my $dir = tempdir( CLEANUP => 1 );
- my $res = do { local $File::Fetch::WARN = 0;
+ my $res = do {
local $File::Fetch::WARN = 0;
+ local $File::Fetch::TIMEOUT = $conf->get_conf('timeout');
$ff->fetch( to => $dir );
- };
+ };
### couldn't get the file
unless( $res ) {
diff --git a/cpan/CPANPLUS/lib/CPANPLUS/Internals/Utils.pm b/cpan/CPANPLUS/lib/CPANPLUS/Internals/Utils.pm
index 46ddec858e..bf475c9a71 100644
--- a/cpan/CPANPLUS/lib/CPANPLUS/Internals/Utils.pm
+++ b/cpan/CPANPLUS/lib/CPANPLUS/Internals/Utils.pm
@@ -10,6 +10,7 @@ use File::Copy;
use Params::Check qw[check];
use Module::Load::Conditional qw[can_load];
use Locale::Maketext::Simple Class => 'CPANPLUS', Style => 'gettext';
+use version;
local $Params::Check::VERBOSE = 1;
@@ -199,7 +200,8 @@ sub _version_to_number {
check( $tmpl, \%hash ) or return;
- return $version if $version =~ /^\.?\d/;
+ return $version if $version =~ /^\d*(?:\.\d+)?$/;
+ return eval { version->parse($1)->numify } if $version =~ /^(v?\d+(?:\.\d+(?:\.\d+)?)?)/;
return '0.0';
}
@@ -374,7 +376,8 @@ sub _vcmp {
my $self = shift;
my ($x, $y) = @_;
- s/_//g foreach $x, $y;
+ $x = $self->_version_to_number(version => $x);
+ $y = $self->_version_to_number(version => $y);
return $x <=> $y;
}
diff --git a/cpan/CPANPLUS/lib/CPANPLUS/Selfupdate.pm b/cpan/CPANPLUS/lib/CPANPLUS/Selfupdate.pm
index 963f8ba09e..e27f98b09c 100644
--- a/cpan/CPANPLUS/lib/CPANPLUS/Selfupdate.pm
+++ b/cpan/CPANPLUS/lib/CPANPLUS/Selfupdate.pm
@@ -49,7 +49,7 @@ CPANPLUS::Selfupdate
'Module::Load' => '0.10',
'Module::Load::Conditional' => '0.38', # returns dir for loaded
# modules
- 'version' => '0.73', # needed for M::L::C
+ 'version' => '0.77', # needed for M::L::C
# addresses #24630 and
# #24675
# Address ~0 overflow issue
diff --git a/cpan/CPANPLUS/lib/CPANPLUS/Shell/Default.pm b/cpan/CPANPLUS/lib/CPANPLUS/Shell/Default.pm
index db75c44594..9bfe3e5af1 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.9106";
+ $VERSION = "0.9107";
}
load CPANPLUS::Shell;
diff --git a/cpan/CPANPLUS/t/00_CPANPLUS-Internals-Utils.t b/cpan/CPANPLUS/t/00_CPANPLUS-Internals-Utils.t
index dc9dcffa21..e15dcb2fc0 100644
--- a/cpan/CPANPLUS/t/00_CPANPLUS-Internals-Utils.t
+++ b/cpan/CPANPLUS/t/00_CPANPLUS-Internals-Utils.t
@@ -8,7 +8,7 @@ use strict;
### make sure to keep the plan -- this is the only test
### supported for 'older' T::H (pre 2.28) -- see Makefile.PL for details
-use Test::More tests => 40;
+use Test::More tests => 48;
use Cwd;
use Data::Dumper;
@@ -116,11 +116,15 @@ rmdir $Dir if -d $Dir;
### _version_to_number tests ###
{ my $map = {
- '1' => '1',
- '1.2' => '1.2',
- '.2' => '.2',
- 'foo' => '0.0',
- 'a.1' => '0.0',
+ '1' => '1',
+ '1.2' => '1.2',
+ '.2' => '.2',
+ 'foo' => '0.0',
+ 'a.1' => '0.0',
+ '1.2.3' => '1.002003',
+ 'v1.2.3' => '1.002003',
+ 'v1.5' => '1.005000',
+ '1.5-a' => '1.500',
};
while( my($try,$expect) = each %$map ) {
diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index b91d66ccc7..723914cd06 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -192,7 +192,7 @@ IO::Compress::Zip when the content size was exactly 0xFFFFFFFF.
=item *
-L<CPANPLUS> has been upgraded from version 0.9105 to version 0.9106
+L<CPANPLUS> has been upgraded from version 0.9105 to version 0.9107
=item *