'CPANPLUS' =>
{
'MAINTAINER' => 'kane',
- 'DISTRIBUTION' => 'BINGOS/CPANPLUS-0.9005.tar.gz',
+ 'DISTRIBUTION' => 'BINGOS/CPANPLUS-0.9007.tar.gz',
'FILES' => q[cpan/CPANPLUS],
'EXCLUDED' => [ qr{^inc/},
qr{^t/dummy-.*\.hidden$},
use vars qw( @EXPORT @ISA $VERSION );
@EXPORT = qw( shell fetch get install );
@ISA = qw( Exporter );
- $VERSION = "0.9005"; #have to hardcode or cpan.org gets unhappy
+ $VERSION = "0.9007"; #have to hardcode or cpan.org gets unhappy
}
### purely for backward compatibility, so we can call it from the commandline:
my $sub = CPANPLUS::Module->can(
'module_is_supplied_with_perl_core' );
my $core = $sub->( $mod );
- unless ( $core ) {
+ unless ( defined $core ) {
error( loc( "No such module '%1' found on CPAN", $mod ) );
next;
}
CPANPLUS::Internals::Report
];
-$VERSION = "0.9005";
+$VERSION = "0.9007";
=pod
### version of perl (5.8.6+ and 5.9.2-4 at the time of writing)
### 'Config' is not recognized as a core module. See this bug:
### http://rt.cpan.org/Ticket/Display.html?id=32155
- if( !$obj and !$sub->( $prq_name ) ) {
+ if( !$obj and !defined $sub->( $prq_name ) ) {
msg(loc( "Prerequisite '%1' for '%2' could not be obtained".
" from CPAN -- sending N/A grade",
$prq_name, $name ), $verbose );
my $core = $self->module_is_supplied_with_perl_core;
### ok, so it's found in the core, BUT it could be dual-lifed
- if ($core) {
+ if (defined $core) {
### if the package is newer than installed, then it's dual-lifed
return if $cb->_vcmp($self->version, $self->installed_version) > 0;
### broken for perl 5.10: Module::CoreList's version key for the
### hash has a different number of trailing zero than $] aka
### $PERL_VERSION.
- my $core = $Module::CoreList::version{ 0+$ver }->{ $name };
+ my $core;
+
+ if ( exists $Module::CoreList::version{ 0+$ver }->{ $name } ) {
+ $core = $Module::CoreList::version{ 0+$ver }->{ $name };
+ $core = 0 unless $core;
+ }
return $core;
}
BEGIN {
use vars qw[ $VERSION @ISA ];
@ISA = qw[ CPANPLUS::Shell::_Base::ReadLine ];
- $VERSION = "0.9005";
+ $VERSION = "0.9007";
}
load CPANPLUS::Shell;
my $TestMod = TEST_CONF_MODULE;
my $TestAuth= TEST_CONF_AUTHOR;
+unless ( -t ) {
+ ok('We are not on a terminal');
+ exit 0;
+}
### basic load tests
use_ok( $Class, 'Default' );
is( $Class->which, SHELL_DEFAULT,
"Default shell loaded" );
-
### create an object
my $Shell = $Class->new( $Conf );
ok( $Shell, " New object created" );