'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$},
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',
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:
return CPANPLUS::Backend::RV->new(
function => $func,
- ok => !$flag,
+ ok => ( !$flag ? 1 : 0 ),
rv => $href,
args => \%hash,
);
CPANPLUS::Internals::Report
];
-$VERSION = "0.9106";
+$VERSION = "0.9107";
=pod
### 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 ) {
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;
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';
}
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;
}
'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
BEGIN {
use vars qw[ $VERSION @ISA ];
@ISA = qw[ CPANPLUS::Shell::_Base::ReadLine ];
- $VERSION = "0.9106";
+ $VERSION = "0.9107";
}
load CPANPLUS::Shell;
### 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;
### _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 ) {
=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 *