diff options
author | Steve Peters <steve@fisharerojo.org> | 2006-09-23 16:58:17 +0000 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2006-09-23 16:58:17 +0000 |
commit | 2ccf00a715881982d4e58c6f46a35526476a3141 (patch) | |
tree | 7d545e9110befdd39c52e6c4b93da959759abc7f /lib/CPAN | |
parent | 2d910ff823ba071d00330e98364ee507ace1b02e (diff) | |
download | perl-2ccf00a715881982d4e58c6f46a35526476a3141.tar.gz |
Upgrade to CPAN-1.8801.
p4raw-id: //depot/perl@28881
Diffstat (limited to 'lib/CPAN')
-rw-r--r-- | lib/CPAN/FirstTime.pm | 17 | ||||
-rw-r--r-- | lib/CPAN/Tarzip.pm | 12 |
2 files changed, 15 insertions, 14 deletions
diff --git a/lib/CPAN/FirstTime.pm b/lib/CPAN/FirstTime.pm index 4ec7afc8d8..9173349333 100644 --- a/lib/CPAN/FirstTime.pm +++ b/lib/CPAN/FirstTime.pm @@ -2,7 +2,7 @@ package CPAN::Mirrored::By; use strict; use vars qw($VERSION); -$VERSION = sprintf "%.6f", substr(q$Rev: 848 $,4)/1000000 + 5.4; +$VERSION = sprintf "%.6f", substr(q$Rev: 879 $,4)/1000000 + 5.4; sub new { my($self,@arg) = @_; @@ -21,7 +21,7 @@ use File::Basename (); use File::Path (); use File::Spec; use vars qw($VERSION $urllist); -$VERSION = sprintf "%.6f", substr(q$Rev: 848 $,4)/1000000 + 5.4; +$VERSION = sprintf "%.6f", substr(q$Rev: 879 $,4)/1000000 + 5.4; =head1 NAME @@ -288,15 +288,18 @@ Shall we use it as the general CPAN build and cache directory? local $^W = $old_warn; my $progname; for $progname (@external_progs) { + next if $matcher && $progname !~ /$matcher/; if ($^O eq 'MacOS') { $CPAN::Config->{$progname} = 'not_here'; next; } - next if $matcher && $progname !~ /$matcher/; my $progcall = $progname; - # we don't need ncftp if we have ncftpget - next if $progname eq "ncftp" && $CPAN::Config->{ncftpget} gt " "; + unless ($matcher) { + # we really don't need ncftp if we have ncftpget, but + # if they chose this dialog via matcher, they shall have it + next if $progname eq "ncftp" && $CPAN::Config->{ncftpget} gt " "; + } my $path = $CPAN::Config->{$progname} || $Config::Config{$progname} || ""; @@ -473,8 +476,8 @@ Shall we use it as the general CPAN build and cache directory? my_yn_prompt(colorize_output => 0, $matcher); if ($CPAN::Config->{colorize_output}) { for my $tuple ( - ["colorize_print", "bold blue"], - ["colorize_warn", "bold red"], + ["colorize_print", "bold blue on_white"], + ["colorize_warn", "bold red on_white"], ) { my_dflt_prompt($tuple->[0] => $tuple->[1], $matcher); if ($CPAN::META->has_inst("Term::ANSIColor")) { diff --git a/lib/CPAN/Tarzip.pm b/lib/CPAN/Tarzip.pm index 860faf0b5c..abd9ace095 100644 --- a/lib/CPAN/Tarzip.pm +++ b/lib/CPAN/Tarzip.pm @@ -4,11 +4,11 @@ use strict; use vars qw($VERSION @ISA $BUGHUNTING); use CPAN::Debug; use File::Basename (); -$VERSION = sprintf "%.6f", substr(q$Rev: 844 $,4)/1000000 + 5.4; +$VERSION = sprintf "%.6f", substr(q$Rev: 858 $,4)/1000000 + 5.4; # module is internal to CPAN.pm @ISA = qw(CPAN::Debug); -$BUGHUNTING = 0; # released code must have turned off +$BUGHUNTING ||= 0; # released code must have turned off # it's ok if file doesn't exist, it just matters if it is .gz or .bz2 sub new { @@ -208,11 +208,6 @@ sub untar { $CPAN::META->has_inst("Archive::Tar") && $CPAN::META->has_inst("Compress::Zlib") ) { - if ($file =~ /\.bz2$/) { - $CPAN::Frontend->mydie(qq{ -Archive::Tar lacks support for bz2. Can't continue. -}); - } $prefer = 2; } else { $CPAN::Frontend->mydie(qq{ @@ -257,6 +252,9 @@ installed. Can't continue. return 1; } } elsif ($prefer==2) { # 2 => modules + unless ($CPAN::META->has_inst("Archive::Tar")) { + $CPAN::Frontend->mydie("Archive::Tar not installed, please install it to continue"); + } my $tar = Archive::Tar->new($file,1); my $af; # archive file my @af; |