'CPANPLUS' =>
{
'MAINTAINER' => 'kane',
- 'DISTRIBUTION' => 'BINGOS/CPANPLUS-0.89_04.tar.gz',
+ 'DISTRIBUTION' => 'BINGOS/CPANPLUS-0.89_05.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_04"; #have to hardcode or cpan.org gets unhappy
+ $VERSION = "0.89_05"; #have to hardcode or cpan.org gets unhappy
}
### purely for backward compatibility, so we can call it from the commandline:
CPANPLUS::Internals::Report
];
-$VERSION = "0.89_04";
+$VERSION = "0.89_05";
=pod
return $str;
};
+use constant REPORT_TOOLCHAIN_VERSIONS
+ => sub {
+ my $mod = shift;
+ my $cb = $mod->parent;
+ #die unless $cb->isa('CPANPLUS::Backend');
+
+ my @toolchain_modules= qw(
+ CPANPLUS
+ CPANPLUS::Dist::Build
+ Cwd
+ ExtUtils::CBuilder
+ ExtUtils::Command
+ ExtUtils::Install
+ ExtUtils::MakeMaker
+ ExtUtils::Manifest
+ ExtUtils::ParseXS
+ File::Spec
+ Module::Build
+ Test::Harness
+ Test::More
+ version
+ );
+
+ my @toolchain =
+ grep { $_ } #module_tree returns '' when module is not found
+ map { $cb->module_tree($_) }
+ sort @toolchain_modules;
+
+ ### no prereqs?
+ return '' unless @toolchain;
+
+ ### toolchain modules
+ my $str = << ".";
+
+Perl module toolchain versions installed:
+.
+ $str .= join '',
+ map { sprintf "\t%-30s %8s\n",
+ @$_
+
+ } ['Module Name', 'Have'],
+ map {
+ [ $_->name,
+ $_->installed_version,
+ ],
+ ### might be empty entries in there
+ } @toolchain;
+
+ return $str;
+ };
+
+
use constant REPORT_TESTS_SKIPPED
=> sub {
return << ".";
### add a list of what modules have been loaded of your prereqs list
$message .= REPORT_LOADED_PREREQS->($mod);
+ ### add a list of versions of toolchain modules
+ $message .= REPORT_TOOLCHAIN_VERSIONS->($mod);
+
### the footer
$message .= REPORT_MESSAGE_FOOTER->();
BEGIN {
use vars qw[ $VERSION @ISA ];
@ISA = qw[ CPANPLUS::Shell::_Base::ReadLine ];
- $VERSION = "0.89_04";
+ $VERSION = "0.89_05";
}
load CPANPLUS::Shell;
### would you like a log file of what happened?
if( $conf->get_conf('write_install_logs') ) {
+ if ( ON_WIN32 and !check_install(
+ module => 'IPC::Run', version => 0.55 )
+ ) {
+ error(loc("IPC::Run version '%1' is required on MSWin32"
+ . " in order to capture buffers."
+ . " The logfile generated may not contain"
+ . " any useful data, until it is installed", 0.55));
+ }
+
my $dir = File::Spec->catdir(
$conf->get_conf('base'),
$conf->_get_build('install_log_dir'),
}->{ $key } || CONFIG_USER;
my $file = $conf->_config_pm_to_file( $where );
- system("$editor $file");
+ system($editor,$file);
### now reload it
### disable warnings for this
like($str, qr/\! $ModPrereq\s+\S+\s+\S+/,
" Proper content found" );
}
+
+ { my $clone = $Mod->clone;
+
+ my $str = REPORT_TOOLCHAIN_VERSIONS->( $clone );
+
+ like($str, qr/toolchain/, "Correct message in report" );
+ use Cwd;
+ like($str, qr/Cwd\s+\Q$Cwd::VERSION\E/,
+ "Cwd has correct version in report" );
+ }
}
### callback tests