diff options
author | Chris Williams <chris@bingosnet.co.uk> | 2009-10-29 15:09:29 +0000 |
---|---|---|
committer | Chris Williams <chris@bingosnet.co.uk> | 2009-10-29 15:09:29 +0000 |
commit | 13f4e2ac11fc84c6dd0c9663e51e31a68e57ae37 (patch) | |
tree | 1dbf479dcfa5d677482e0850050b504da7681b4f /cpan/CPANPLUS | |
parent | d3e1f86c0c53ab5504bbbd35b3d95138ea2e0b86 (diff) | |
download | perl-13f4e2ac11fc84c6dd0c9663e51e31a68e57ae37.tar.gz |
Update CPANPLUS to cpan version 0.89_06
Changes for 0.89_06 Thu Oct 29 14:55:25 2009
================================================
* Fool the installer into replacing our scripts that were installed
by core with versiononly set.
* Handle PREREQS being mentioned twice in Makefile. Use _vcmp()
to compare the versions, take the highest.
Diffstat (limited to 'cpan/CPANPLUS')
-rw-r--r-- | cpan/CPANPLUS/lib/CPANPLUS.pm | 2 | ||||
-rw-r--r-- | cpan/CPANPLUS/lib/CPANPLUS/Dist/MM.pm | 10 | ||||
-rw-r--r-- | cpan/CPANPLUS/lib/CPANPLUS/Internals.pm | 2 | ||||
-rw-r--r-- | cpan/CPANPLUS/lib/CPANPLUS/Shell/Default.pm | 2 |
4 files changed, 9 insertions, 7 deletions
diff --git a/cpan/CPANPLUS/lib/CPANPLUS.pm b/cpan/CPANPLUS/lib/CPANPLUS.pm index 5fc9ec8a8c..c10d0c10b1 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.89_05"; #have to hardcode or cpan.org gets unhappy + $VERSION = "0.89_06"; #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/Dist/MM.pm b/cpan/CPANPLUS/lib/CPANPLUS/Dist/MM.pm index 262c83be52..21852ff343 100644 --- a/cpan/CPANPLUS/lib/CPANPLUS/Dist/MM.pm +++ b/cpan/CPANPLUS/lib/CPANPLUS/Dist/MM.pm @@ -480,11 +480,13 @@ sub _find_prereqs { while( $found =~ m/(?:\s)([\w\:]+)=>(?:q\[(.*?)\],?|undef)/g ) { if( defined $p{$1} ) { - msg(loc("Warning: PREREQ_PM mentions '%1' more than once. " . - "Last mention wins.", $1 ), $verbose ); + my $ver = $cb->_version_to_number(version => $2); + $p{$1} = $ver + if $cb->_vcmp( $ver, $p{$1} ) > 0; + } + else { + $p{$1} = $cb->_version_to_number(version => $2); } - - $p{$1} = $cb->_version_to_number(version => $2); } last; } diff --git a/cpan/CPANPLUS/lib/CPANPLUS/Internals.pm b/cpan/CPANPLUS/lib/CPANPLUS/Internals.pm index 8657941762..8cd6a82461 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.89_05"; +$VERSION = "0.89_06"; =pod diff --git a/cpan/CPANPLUS/lib/CPANPLUS/Shell/Default.pm b/cpan/CPANPLUS/lib/CPANPLUS/Shell/Default.pm index fda2548440..04291224f7 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.89_05"; + $VERSION = "0.89_06"; } load CPANPLUS::Shell; |