use if $] < 5.008 => 'IO::Scalar';
-$VERSION = '1.675';
+$VERSION = '1.676';
=head1 NAME
*CPAN::Shell::mywarn = sub {
my($self,$what) = @_;
- $scalar .= $what;
+ $scalar .= $what if defined $what;
$self->print_ornamented($what,
$CPAN::Config->{colorize_warn}||'bold red on_white'
);
# vim: ts=4 sts=4 sw=4:
use strict;
package CPAN;
-$CPAN::VERSION = '2.27';
+$CPAN::VERSION = '2.28';
$CPAN::VERSION =~ s/_//;
# we need to run chdir all over and we would get at wrong libraries
# 5.6.2 could not do the local() with the reference
# so we do it manually instead
my $old_loadcode = ${"$yaml_module\::LoadCode"};
+ my $old_loadblessed = ${"$yaml_module\::LoadBlessed"};
${ "$yaml_module\::LoadCode" } = $CPAN::Config->{yaml_load_code} || 0;
+ ${ "$yaml_module\::LoadBlessed" } = 1;
my ($code, @yaml);
if ($code = UNIVERSAL::can($yaml_module, "LoadFile")) {
}
} elsif ($code = UNIVERSAL::can($yaml_module, "Load")) {
local *FH;
- unless (open FH, $local_file) {
+ if (open FH, $local_file) {
+ local $/;
+ my $ystream = <FH>;
+ eval { @yaml = $code->($ystream); };
+ if ($@) {
+ # this shall not be done by the frontend
+ die CPAN::Exception::yaml_process_error->new($yaml_module,$local_file,"parse",$@);
+ }
+ } else {
$CPAN::Frontend->mywarn("Could not open '$local_file': $!");
- return +[];
- }
- local $/;
- my $ystream = <FH>;
- eval { @yaml = $code->($ystream); };
- if ($@) {
- # this shall not be done by the frontend
- die CPAN::Exception::yaml_process_error->new($yaml_module,$local_file,"parse",$@);
}
}
${"$yaml_module\::LoadCode"} = $old_loadcode;
+ ${"$yaml_module\::LoadBlessed"} = $old_loadblessed;
return \@yaml;
} else {
# this shall not be done by the frontend
use vars qw(
$VERSION
);
-$VERSION = "5.5012";
+$VERSION = "5.5013";
sub _plus_append_open {
my($fh, $file) = @_;
return if defined $ftpstats_size && $ftpstats_size <= 0;
my $locktype = $fh ? LOCK_EX : LOCK_SH;
# XXX On Windows flock() implements mandatory locking, so we can
- # XXX only use shared locking to still allow _yaml_load_file() to
+ # XXX only use shared locking to still allow _yaml_loadfile() to
# XXX read from the file using a different filehandle.
$locktype = LOCK_SH if $^O eq "MSWin32";
use CPAN::Mirrors ();
use CPAN::Version ();
use vars qw($VERSION $auto_config);
-$VERSION = "5.5314";
+$VERSION = "5.5315";
=head1 NAME
then let the build of this distro fail when it would not represent the
most up-to-date version of the distro.
-Note: choosing anyhing but 'yes' for this option will need
-Devel::DistnameInfo being installed for taking effect.
+Note: choosing anything but 'yes' for this option will need
+CPAN::DistnameInfo being installed for taking effect.
Do you want to allow installing distros that are not indexed as the
highest distro-version for all contained modules (yes, no, ask/yes,