From: Steve Peters Date: Mon, 19 Feb 2007 19:42:47 +0000 (+0000) Subject: Upgrade to CPAN-1.88_76 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ed756621b7e346dcad5b51c1e9d060d1fe530fae;p=p5sagit%2Fp5-mst-13.2.git Upgrade to CPAN-1.88_76 p4raw-id: //depot/perl@30361 --- diff --git a/lib/CPAN.pm b/lib/CPAN.pm index 2221a5f..d24f61e 100644 --- a/lib/CPAN.pm +++ b/lib/CPAN.pm @@ -1,7 +1,7 @@ # -*- Mode: cperl; coding: utf-8; cperl-indent-level: 4 -*- use strict; package CPAN; -$CPAN::VERSION = '1.88_73'; +$CPAN::VERSION = '1.88_76'; $CPAN::VERSION = eval $CPAN::VERSION; use CPAN::HandleConfig; @@ -3334,10 +3334,11 @@ sub _add_to_statistics { push @debug, time if $sdebug; push @{$fullstats->{history}}, $stats; # arbitrary hardcoded constants until somebody demands to have - # them settable + # them settable; YAML.pm 0.62 is unacceptably slow with 999; + # YAML::Syck 0.82 has no noticable performance problem with 999; while ( - @{$fullstats->{history}} > 999 - || $time - $fullstats->{history}[0]{start} > 30*86400 # one month + @{$fullstats->{history}} > 99 + || $time - $fullstats->{history}[0]{start} > 14*86400 ) { shift @{$fullstats->{history}} } @@ -9645,6 +9646,9 @@ current date and a counter. =head2 hosts +Note: this feature is still in alpha state and may change in future +versions of CPAN.pm + This commands provides a statistical overview over recent download activities. The data for this is collected in the YAML file C in your C directory. If no YAML module is @@ -9729,6 +9733,9 @@ CPAN::Module, the second by an object of class CPAN::Distribution. =head2 Integrating local directories +Note: this feature is still in alpha state and may change in future +versions of CPAN.pm + Distribution objects are normally distributions from the CPAN, but there is a slightly degenerate case for Distribution objects, too, of projects held on the local disk. These distribution objects have the @@ -11327,10 +11334,14 @@ You will most probably also want to configure something like this: o conf makepl_arg "LIB=~/myperl/lib \ INSTALLMAN1DIR=~/myperl/man/man1 \ - INSTALLMAN3DIR=~/myperl/man/man3" + INSTALLMAN3DIR=~/myperl/man/man3 \ + INSTALLSCRIPT=~/myperl/bin \ + INSTALLBIN=~/myperl/bin" + +and then (oh joy) the equivalent command for Module::Build. You can make this setting permanent like all C settings with -C. +C or by setting C beforehand. You will have to add ~/myperl/man to the MANPATH environment variable and also tell your perl programs to look into ~/myperl/lib, e.g. by