Richard L. Maus [Wed, 11 Jun 1997 00:00:00 +0000 (12:00 +1200)]
I found a minor bug in CPAN.pm and swatted it. When I perform "perl
-MCPAN -e 'install "Net::FTP", my system does not have LWP installed,
nor "lynx", but I do have "ncftp" version 2.3.0 (December 5, 1995).
Attempts to redirect standard output of "ncftp" failed, because the
CPAN.pm command causes "ncftp" to directly create the file and nothing
is sent to standard output. I have included a patch that adds the "-c"
flag so that the file is instead sent to standard output.
p5p-msgid:
337FBAC8.167EB0E7@monmouth.com
$want_compressed = $aslocal =~ s/\.gz//;
my($source_switch) = "";
$source_switch = "-source" if $funkyftp =~ /\blynx$/;
+ $source_switch = "-c" if $funkyftp =~ /\bncftp$/;
my($system) = "$funkyftp $source_switch '$url' > $aslocal";
my($wstatus);
if (($wstatus = system($system)) == 0) {