From: Andreas König Date: Fri, 19 Apr 2002 11:55:07 +0000 (+0200) Subject: CPAN.pm sync X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e662ec5f13086f182e381a14fb43524ffc1b7e27;p=p5sagit%2Fp5-mst-13.2.git CPAN.pm sync Message-ID: p4raw-id: //depot/perl@16000 --- diff --git a/lib/CPAN.pm b/lib/CPAN.pm index a6ef18b..0b62b32 100644 --- a/lib/CPAN.pm +++ b/lib/CPAN.pm @@ -1,11 +1,11 @@ # -*- Mode: cperl; coding: utf-8; cperl-indent-level: 4 -*- package CPAN; -$VERSION = '1.59_58'; -# $Id: CPAN.pm,v 1.385 2001/02/09 21:37:57 k Exp $ +$VERSION = '1.60'; +# $Id: CPAN.pm,v 1.389 2002/04/19 09:37:07 k Exp $ # only used during development: $Revision = ""; -# $Revision = "[".substr(q$Revision: 1.385 $, 10)."]"; +# $Revision = "[".substr(q$Revision: 1.389 $, 10)."]"; use Carp (); use Config (); @@ -2115,7 +2115,7 @@ sub config { @ISA = qw(Exporter LWP::UserAgent); $SETUPDONE++; } else { - $CPAN::Frontent->mywarn("LWP::UserAgent not available\n"); + $CPAN::Frontend->mywarn("LWP::UserAgent not available\n"); } } @@ -2272,7 +2272,7 @@ sub localize { CPAN::LWP::UserAgent->config; eval {$Ua = CPAN::LWP::UserAgent->new;}; # Why is has_usable still not fit enough? if ($@) { - $CPAN::Frontent->mywarn("CPAN::LWP::UserAgent->new dies with $@") + $CPAN::Frontend->mywarn("CPAN::LWP::UserAgent->new dies with $@") if $CPAN::DEBUG; } else { my($var); @@ -2423,7 +2423,7 @@ sub hosteasy { CPAN::LWP::UserAgent->config; eval { $Ua = CPAN::LWP::UserAgent->new; }; if ($@) { - $CPAN::Frontent->mywarn("CPAN::LWP::UserAgent->new dies with $@"); + $CPAN::Frontend->mywarn("CPAN::LWP::UserAgent->new dies with $@"); } } my $res = $Ua->mirror($url, $aslocal); @@ -2555,7 +2555,7 @@ Trying with "$funkyftp$src_switch" to get $url ]); my($system) = - "$chdir$funkyftp$src_switch '$url' $devnull$stdout_redir"; + "$chdir$funkyftp$src_switch \"$url\" $devnull$stdout_redir"; $self->debug("system[$system]") if $CPAN::DEBUG; my($wstatus); if (($wstatus = system($system)) == 0 @@ -2588,7 +2588,7 @@ Trying with "$funkyftp$src_switch" to get Trying with "$funkyftp$src_switch" to get $url.gz ]); - my($system) = "$funkyftp$src_switch '$url.gz' $devnull > $asl_gz"; + my($system) = "$funkyftp$src_switch \"$url.gz\" $devnull > $asl_gz"; $self->debug("system[$system]") if $CPAN::DEBUG; my($wstatus); if (($wstatus = system($system)) == 0 @@ -4796,6 +4796,14 @@ sub dir { package CPAN::Bundle; +sub look { + my $self = shift; + $CPAN::Frontend->myprint( + qq{ look() commmand on bundles not}. + qq{ implemented (What should it do?)} + ); +} + sub undelay { my $self = shift; delete $self->{later}; @@ -5317,8 +5325,8 @@ sub manpage_headline { my $inpod = 0; local $/ = "\n"; while (<$fh>) { - $inpod = m/^=(?!head1\s+NAME)/ ? 0 : - m/^=head1\s+NAME/ ? 1 : $inpod; + $inpod = m/^=(?!head1\s+NAME\s*$)/ ? 0 : + m/^=head1\s+NAME\s*$/ ? 1 : $inpod; next unless $inpod; next if /^=/; next if /^\s+$/; diff --git a/lib/CPAN/FirstTime.pm b/lib/CPAN/FirstTime.pm index 4eb5fc5..e85ef93 100644 --- a/lib/CPAN/FirstTime.pm +++ b/lib/CPAN/FirstTime.pm @@ -18,7 +18,7 @@ use File::Basename (); use File::Path (); use File::Spec; use vars qw($VERSION); -$VERSION = substr q$Revision: 1.54 $, 10; +$VERSION = substr q$Revision: 1.55 $, 10; =head1 NAME diff --git a/lib/CPAN/Nox.pm b/lib/CPAN/Nox.pm index 816df79..5c14291 100644 --- a/lib/CPAN/Nox.pm +++ b/lib/CPAN/Nox.pm @@ -9,7 +9,7 @@ BEGIN{ use base 'Exporter'; use CPAN; -$VERSION = "1.00_01"; +$VERSION = "1.02"; $CPAN::META->has_inst('Digest::MD5','no'); $CPAN::META->has_inst('LWP','no'); $CPAN::META->has_inst('Compress::Zlib','no');