summaryrefslogtreecommitdiff
path: root/cpan/CPAN
diff options
context:
space:
mode:
authorAndreas J. Koenig <andk@cpan.org>2010-06-14 09:46:15 +0100
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>2010-06-14 09:46:15 +0100
commit742adbff4f079f203897faa086d954cc3a26460a (patch)
treec72931b43818179dd42c7da5e45db11da39a2755 /cpan/CPAN
parent086d291379a28ceb3cd7cc6416747be8c426476b (diff)
downloadperl-742adbff4f079f203897faa086d954cc3a26460a.tar.gz
Update CPAN.pm to 1.94_57
2010-05-24 Andreas J. Koenig <andk@cpan.org> * release 1.94_57 * bugfix: treat modules correctly that are deprecated in perl 5.12. * bugfix: RT #57482 and #57788 revealed that configure_requires implicitly assumed build_requires instead of normal requires. (Reported by Andrew Whatson and Father Chrysostomos respectively) * testfix: solaris should run the tests without expect because (some?) solaris have a broken expect * testfix: run tests with cache_metadata off to prevent spill over effects from previous test runs Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
Diffstat (limited to 'cpan/CPAN')
-rw-r--r--cpan/CPAN/Changes16
-rw-r--r--cpan/CPAN/lib/CPAN.pm9
-rw-r--r--cpan/CPAN/lib/CPAN/Distribution.pm22
-rw-r--r--cpan/CPAN/lib/CPAN/FTP.pm6
-rw-r--r--cpan/CPAN/lib/CPAN/Queue.pm6
5 files changed, 46 insertions, 13 deletions
diff --git a/cpan/CPAN/Changes b/cpan/CPAN/Changes
index 1b5300cf5f..4b2d697047 100644
--- a/cpan/CPAN/Changes
+++ b/cpan/CPAN/Changes
@@ -1,3 +1,19 @@
+2010-05-24 Andreas J. Koenig <andk@cpan.org>
+
+ * release 1.94_57
+
+ * bugfix: treat modules correctly that are deprecated in perl 5.12.
+
+ * bugfix: RT #57482 and #57788 revealed that configure_requires
+ implicitly assumed build_requires instead of normal requires. (Reported
+ by Andrew Whatson and Father Chrysostomos respectively)
+
+ * testfix: solaris should run the tests without expect because (some?)
+ solaris have a broken expect
+
+ * testfix: run tests with cache_metadata off to prevent spill over
+ effects from previous test runs
+
2010-02-17 Andreas J. Koenig <andk@cpan.org>
* release 1.94_56
diff --git a/cpan/CPAN/lib/CPAN.pm b/cpan/CPAN/lib/CPAN.pm
index 9d09708afc..8d835cd3be 100644
--- a/cpan/CPAN/lib/CPAN.pm
+++ b/cpan/CPAN/lib/CPAN.pm
@@ -2,7 +2,7 @@
# vim: ts=4 sts=4 sw=4:
use strict;
package CPAN;
-$CPAN::VERSION = '1.94_56';
+$CPAN::VERSION = '1.94_57';
$CPAN::VERSION =~ s/_//;
# we need to run chdir all over and we would get at wrong libraries
@@ -1142,7 +1142,7 @@ sub has_inst {
CPAN: Module::Signature security checks disabled because Module::Signature
not installed. Please consider installing the Module::Signature module.
You may also need to be able to connect over the Internet to the public
- keyservers like pgp.mit.edu (port 11371).
+ keyservers like pool.sks-keyservers.net or pgp.mit.edu.
});
$CPAN::Frontend->mysleep(2);
@@ -3729,6 +3729,11 @@ This module and its competitor, the CPANPLUS module, are both much
cooler than the other. CPAN.pm is older. CPANPLUS was designed to be
more modular, but it was never intended to be compatible with CPAN.pm.
+=head2 CPANMINUS
+
+In the year 2010 App::cpanminus was launched as a new approach to a
+cpan shell with a considerably smaller footprint. Very cool stuff.
+
=head1 SECURITY ADVICE
This software enables you to upgrade software on your computer and so
diff --git a/cpan/CPAN/lib/CPAN/Distribution.pm b/cpan/CPAN/lib/CPAN/Distribution.pm
index ac8f873a13..eeca99c241 100644
--- a/cpan/CPAN/lib/CPAN/Distribution.pm
+++ b/cpan/CPAN/lib/CPAN/Distribution.pm
@@ -5,7 +5,7 @@ use CPAN::Distroprefs;
use CPAN::InfoObj;
@CPAN::Distribution::ISA = qw(CPAN::InfoObj);
use vars qw($VERSION);
-$VERSION = "1.9456_01";
+$VERSION = "1.9600";
# Accessors
sub cpan_comment {
@@ -638,7 +638,7 @@ sub satisfy_configure_requires {
# configure_requires simply fail, all others succeed
}
my @prereq = $self->unsat_prereq("configure_requires_later");
- $self->debug("configure_requires[@prereq]") if $CPAN::DEBUG;
+ $self->debug(sprintf "configure_requires[%s]", join(",",map {join "/",@$_} @prereq)) if $CPAN::DEBUG;
return 1 unless @prereq;
$self->debug(\@prereq) if $CPAN::DEBUG;
if ($self->{configure_requires_later}) {
@@ -2576,10 +2576,9 @@ sub unsat_prereq {
or $need_version eq '0' # "==" would trigger warning when not numeric
or $need_version eq "undef"
)) {
- unless ($nmo->inst_deprecated) {
- next NEED;
- }
-
+ unless ($nmo->inst_deprecated) {
+ next NEED;
+ }
}
$available_version = $nmo->available_version;
@@ -2696,7 +2695,16 @@ sub unsat_prereq {
}
}
}
- my $needed_as = exists $prereq_pm->{requires}{$need_module} ? "r" : "b";
+ my $needed_as;
+ if (0) {
+ } elsif (exists $prereq_pm->{requires}{$need_module}) {
+ $needed_as = "r";
+ } elsif ($slot eq "configure_requires_later") {
+ # we have not yet run the {Build,Makefile}.PL, we must presume "r"
+ $needed_as = "r";
+ } else {
+ $needed_as = "b";
+ }
push @need, [$need_module,$needed_as];
}
my @unfolded = map { "[".join(",",@$_)."]" } @need;
diff --git a/cpan/CPAN/lib/CPAN/FTP.pm b/cpan/CPAN/lib/CPAN/FTP.pm
index 268ca28467..73386990f4 100644
--- a/cpan/CPAN/lib/CPAN/FTP.pm
+++ b/cpan/CPAN/lib/CPAN/FTP.pm
@@ -46,7 +46,11 @@ sub _ftp_statistics {
$CPAN::Frontend->myprint("Warning (usually harmless): $@\n");
return;
} elsif (ref $@ eq "CPAN::Exception::yaml_process_error") {
- $CPAN::Frontend->mydie($@);
+ my $time = time;
+ my $to = "$file.$time";
+ $CPAN::Frontend->myprint("Error reading '$file': $@\nStashing away as '$to' to prevent further interruptions. You may want to remove that file later.\n");
+ rename $file, $to or $CPAN::Frontend->mydie("Could not rename: $!");
+ return;
}
} else {
$CPAN::Frontend->mydie($@);
diff --git a/cpan/CPAN/lib/CPAN/Queue.pm b/cpan/CPAN/lib/CPAN/Queue.pm
index b60f57c1cf..58d69112c7 100644
--- a/cpan/CPAN/lib/CPAN/Queue.pm
+++ b/cpan/CPAN/lib/CPAN/Queue.pm
@@ -109,9 +109,9 @@ sub jumpqueue {
my $class = shift;
my @what = @_;
CPAN->debug(sprintf("before jumpqueue All[%s] what[%s]",
- join("",
- map {sprintf " %s\[%s]\n",$_->{qmod},$_->{reqtype}} @All, @what
- ))) if $CPAN::DEBUG;
+ join("",map {sprintf " %s\[%s]\n",$_->{qmod},$_->{reqtype}} @All),
+ join("",map {sprintf " %s\[%s]\n",$_->{qmod},$_->{reqtype}} @what),
+ )) if $CPAN::DEBUG;
unless (defined $what[0]{reqtype}) {
# apparently it was not the Shell that sent us this enquiry,
# treat it as commandline