summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas König <a.koenig@mind.de>2002-04-19 13:55:07 +0200
committerJarkko Hietaniemi <jhi@iki.fi>2002-04-19 12:16:08 +0000
commite662ec5f13086f182e381a14fb43524ffc1b7e27 (patch)
tree3fd1216438f3e26f866ff0528a225e016b04b0a8 /lib
parentc3bddb1d8f216d2ee6362d46156d74303ed87611 (diff)
downloadperl-e662ec5f13086f182e381a14fb43524ffc1b7e27.tar.gz
CPAN.pm sync
Message-ID: <m3ads0qah0.fsf@anima.de> p4raw-id: //depot/perl@16000
Diffstat (limited to 'lib')
-rw-r--r--lib/CPAN.pm28
-rw-r--r--lib/CPAN/FirstTime.pm2
-rw-r--r--lib/CPAN/Nox.pm2
3 files changed, 20 insertions, 12 deletions
diff --git a/lib/CPAN.pm b/lib/CPAN.pm
index a6ef18b069..0b62b32a50 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 4eb5fc5640..e85ef93132 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 816df79e7c..5c14291036 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');