'CPANPLUS' =>
{
'MAINTAINER' => 'kane',
- 'DISTRIBUTION' => 'BINGOS/CPANPLUS-0.89_09.tar.gz',
+ 'DISTRIBUTION' => 'BINGOS/CPANPLUS-0.89_12.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.89_09"; #have to hardcode or cpan.org gets unhappy
+ $VERSION = "0.89_12"; #have to hardcode or cpan.org gets unhappy
}
### purely for backward compatibility, so we can call it from the commandline:
=item prefer_makefile
A boolean indicating whether or not prefer a C<Makefile.PL> over a
-C<Build.PL> file if both are present. Defaults to 'true'.
+C<Build.PL> file if both are present. Defaults to 'true', unless
+the perl version is at least 5.10.1 or appropriate versions of L<Module::Build>
+and L<CPANPLUS::Dist::Build> are available.
=cut
$Conf->{'conf'}->{'prefer_makefile'} =
- ( $] >= 5.010001 ? 0 : 1 );
+ ( $] >= 5.010001 or
+ ( check_install( module => 'Module::Build', version => '0.32' ) and
+ check_install( module => INSTALLER_BUILD, version => '0.24' ) )
+ ? 0 : 1 );
=item prereqs
A string holding the path to your C<sudo> binary if your install path
requires super user permissions. Looks for C<sudo> in your path, or
-remains empty if you do not require super user permissiosn to install.
+remains empty if you do not require super user permissions to install.
=cut
if ( NO_TESTS_DEFINED->( $captured ) ) {
msg( NO_TESTS_DEFINED->( $captured ), 0 )
} else {
- msg( loc( "MAKE TEST passed: %1", $captured ), $verbose );
+ msg( loc( "MAKE TEST passed: %1", $captured ), 0 );
}
$dist->status->test(1);
CPANPLUS::Internals::Report
];
-$VERSION = "0.89_09";
+$VERSION = "0.89_12";
=pod
}
### XXX should we do an 'already sent' check? ###
- } elsif( $reporter->send( ) ) {
- msg(loc("Successfully sent '%1' report for '%2'", $grade, $dist),
- $verbose);
- return 1;
-
### something broke :( ###
- } else {
+ }
+ else {
+ my $status;
+ eval {
+ $status = $reporter->send();
+ };
+ if ( $@ ) {
+ error(loc("Could not send '%1' report for '%2': %3",
+ $grade, $dist, $@));
+ return;
+ }
+ if ( $status ) {
+ msg(loc("Successfully sent '%1' report for '%2'", $grade, $dist),
+ $verbose);
+ return 1;
+ }
error(loc("Could not send '%1' report for '%2': %3",
$grade, $dist, $reporter->errstr));
return;
$Dbh = DBIx::Simple->connect(
"dbi:SQLite:dbname=" . $self->__sqlite_file,
'', '',
- { AutoCommit => 0 }
+ { AutoCommit => 1 }
);
#$Dbh->dbh->trace(1);
use CPANPLUS::Error;
use CPANPLUS::Internals::Constants;
-use Cwd;
+use Cwd qw[chdir];
use File::Copy;
use Params::Check qw[check];
use Module::Load::Conditional qw[can_load];
BEGIN {
use vars qw[ $VERSION @ISA ];
@ISA = qw[ CPANPLUS::Shell::_Base::ReadLine ];
- $VERSION = "0.89_09";
+ $VERSION = "0.89_12";
}
load CPANPLUS::Shell;
$args = check( $tmpl, \%hash ) or return;
}
- my ($type,$key,$value) = $input =~ m/(\w+)\s*(\w*)\s*(.*?)\s*$/;
+ my ($type,$key,$value) = $input =~ m/(\w+)\s*(\w*)\s*(.*?)$/;
+ $value =~ s/\s+$//g if $value;
$type = lc $type;
if( $type eq 'reconfigure' ) {
loc("All modules %tense(uninstall,past) successfully"), "\n" );
} else {
$self->__print(
- loc("Problem %tense(uninstalling,present) one or more modules" ),
+ loc("Problem %tense(uninstall,present) one or more modules" ),
"\n" );
$self->__print(