# -*- Mode: cperl; coding: utf-8; cperl-indent-level: 4 -*-
package CPAN;
-$VERSION = '1.80_58';
+$VERSION = '1.81';
$VERSION = eval $VERSION;
use strict;
} elsif ($words[1] eq 'conf') {
return CPAN::HandleConfig::cpl(@_);
} elsif ($words[1] eq 'debug') {
- return sort grep /^\Q$word\E/,
+ return sort grep /^\Q$word\E/i,
sort keys %CPAN::DEBUG, 'all';
}
}
use strict;
# Accessors
-sub cpan_comment { shift->ro->{CPAN_COMMENT} }
+sub cpan_comment {
+ my $self = shift;
+ my $ro = $self->ro or return;
+ $ro->{CPAN_COMMENT}
+}
sub undelay {
my $self = shift;
delete $self->{later};
}
+# add the A/AN/ stuff
# CPAN::Distribution::normalize
sub normalize {
my($self,$s) = @_;
$s;
}
+sub pretty_id {
+ my $self = shift;
+ my $id = $self->id;
+ return $id unless $id =~ m|^./../|;
+ substr($id,5);
+}
+
# mark as dirty/clean
#-> sub CPAN::Distribution::color_cmd_tmps ;
sub color_cmd_tmps {
)->as_string
);
- my $wrap = qq{I\'d recommend removing $self->{localfile}. Its signature
+ my $wrap =
+ sprintf(qq{I\'d recommend removing %s. Its signature
is invalid. Maybe you have configured your 'urllist' with
a bad URL. Please check this array with 'o conf urllist', and
-retry.};
+retry. For more information, try opening a subshell with
+ look %s
+and there run
+ cpansign -v},
+ $self->{localfile},
+ $self->pretty_id,
+ );
$CPAN::Frontend->mydie(Text::Wrap::wrap("","",$wrap));
}
} else {
use File::Path ();
use File::Spec;
use vars qw($VERSION);
-$VERSION = sprintf "%.2f", substr(q$Rev: 286 $,4)/100;
+$VERSION = sprintf "%.2f", substr(q$Rev: 331 $,4)/100;
=head1 NAME
prompt("Do you want to use a different make command for 'make install'?
Cautious people will probably prefer:
+ su root -c make
+or
sudo make
or
/path1/to/sudo -u admin_account /path2/to/make
prompt("Do you want to use a different command for './Build install'?
Sudo users will probably prefer:
+ su root -c ./Build
+or
sudo ./Build
or
/path1/to/sudo -u admin_account ./Build