Perl-Dist-WiX
view release on metacpan or search on metacpan
lib/Perl/Dist/WiX.pm view on Meta::CPAN
### *** TODO: Move AppData/.cpan/CPAN/MyConfig.pm out of the way. ***
# If we have a file:// url for the CPAN, move the
# sources directory out of the way.
if ( $self->cpan()->as_string() =~ m{\Afile://}mxsi ) {
if ( not $CPAN::Config_loaded++ ) {
CPAN::HandleConfig->load();
}
my $cpan_path_from = $CPAN::Config->{'keep_source_where'};
my $cpan_path_to =
rel2abs( catdir( $cpan_path_from, q{..}, 'old_sources' ) );
$self->trace_line( 0, "Moving CPAN sources files:\n" );
$self->trace_line( 2, <<"EOF");
From: $cpan_path_from
To: $cpan_path_to
EOF
File::Copy::Recursive::move( $cpan_path_from, $cpan_path_to );
$self->_set_cpan_sources_from($cpan_path_from);
$self->_set_cpan_sources_to($cpan_path_to);
$self->_move_cpan();
} ## end if ( $self->cpan()->as_string...)
# Do some sanity checks.
if ( $self->cpan()->as_string() !~ m{\/\z}ms ) {
PDWiX::Parameter->throw(
parameter => 'cpan: Missing trailing slash',
where => '->final_initialization'
);
}
( run in 0.317 second using v1.01-cache-2.11-cpan-f79bc02f770 )