use vars qw( @EXPORT @ISA $VERSION );
@EXPORT = qw( shell fetch get install );
@ISA = qw( Exporter );
- $VERSION = "0.81_01"; #have to hardcode or cpan.org gets unhappy
+ $VERSION = "0.82"; #have to hardcode or cpan.org gets unhappy
}
### purely for backward compatibility, so we can call it from the commandline:
=pod
-=head2 $mod_obj = $cb->parse_module( module => $modname|$distname|$modobj )
+=head2 $mod_obj = $cb->parse_module( module => $modname|$distname|$modobj|URI )
C<parse_module> tries to find a C<CPANPLUS::Module> object that
matches your query. Here's a list of examples you could give to
### or user installs
### note that we don't use 'can_run' as it's
### not an executable, just a wrapper...
- for my $dir (split(/\Q$Config::Config{path_sep}\E/, $ENV{PATH}),
- File::Spec->curdir
+ ### prefer anything that's found in the path paralel to your $^X
+ for my $dir (File::Spec->rel2abs( dirname($^X) ),
+ split(/\Q$Config::Config{path_sep}\E/, $ENV{PATH}),
+ File::Spec->curdir,
) {
$maybe = File::Spec->catfile( $dir, $bin );
$path = $maybe and last BIN if -f $maybe;
### cross your fingers...
### pass '-P' to perl: "run program through C
### preprocessor before compilation"
+ ### XXX using -P actually changes the way some Makefile.PLs
+ ### are executed, so don't do that... --kane
error(loc(
"Could not find the '%1' binary in your path".
"--this may be a problem.\n".
Locations and names of source files remotely.
-=item _set|_get_dist
-
-Mapping of distribution format names to modules.
-
=item _set|_get_fetch
Special settings pertaining to the fetching of files.
-=item _set|_get_daemon
-
-Settings for C<cpanpd>, the CPANPLUS daemon.
-
=back
=cut
CPANPLUS::Internals::Report
];
-$VERSION = "0.81_01";
+$VERSION = "0.82";
=pod
if( my $id = $class->_last_id ) {
# make it a singleton.
warn loc(q[%1 currently only supports one %2 object per ] .
- q[running program], 'CPANPLUS', $class);
+ qq[running program\n], 'CPANPLUS', $class);
return $class->_retrieve_id( $id );
}
BEGIN {
use vars qw[ $VERSION @ISA ];
@ISA = qw[ CPANPLUS::Shell::_Base::ReadLine ];
- $VERSION = "0.81_01";
+ $VERSION = "0.82";
}
load CPANPLUS::Shell;
if( $key eq 'z' or
($key eq 's' and $input =~ /^\s*edit/)
) {
- print "\n", loc("Command not supported over remote connection"),
- "\n\n";
+ print "\n",
+ loc( "Command '%1' not supported over remote connection",
+ join ' ', $key, $input
+ ), "\n\n";
} else {
my($status,$buff) = $self->__send_remote_command($org_input);
{ local $Params::Check::ALLOW_UNKNOWN = 1;
my $tmpl = {
- user => { default => $conf->_get_daemon('username'),
- store => \$user },
- pass => { default => $conf->_get_daemon('password'),
- store => \$pass },
+ user => { default => 'cpanpd', store => \$user },
+ pass => { required => 1, store => \$pass },
};
check( $tmpl, $opts ) or return;
my @parts = split /\s+/, $input;
my $host = shift @parts || 'localhost';
- my $port = shift @parts || $conf->_get_daemon('port');
+ my $port = shift @parts || '1337';
load IO::Socket;
### save the original prompt
$Saved_Prompt = $shell->prompt;
- $shell->prompt( $shell->brand .'@'. $host .'> ' );
+ $shell->prompt( $shell->brand .'@'. $host .':'. $port .'> ' );
} else {
print "\n$buffer\n\n";
uupacktool.pl -p lib/CPANPLUS/t/dummy-CPAN/authors/01mailrc.txt.gz lib/CPANPLUS/t/dummy-CPAN/authors/01mailrc.txt.gz.packed
-Created at Sat Jul 7 11:15:17 2007
+Created at Wed Aug 15 16:13:41 2007
#########################################################################
__UU__
M'XL("%_EO$4``S`Q;6%I;')C+G1X=`!+S,E,+%9P#8T(5@`#)=>*DM"2S)QB
uupacktool.pl -p lib/CPANPLUS/t/dummy-CPAN/authors/id/E/EU/EUNOXS/Bundle-Foo-Bar-0.01.tar.gz lib/CPANPLUS/t/dummy-CPAN/authors/id/E/EU/EUNOXS/Bundle-Foo-Bar-0.01.tar.gz.packed
-Created at Sat Jul 7 11:15:17 2007
+Created at Wed Aug 15 16:13:41 2007
#########################################################################
__UU__
M'XL("!1%OT4"`T)U;F1L92U&;V\M0F%R+3`N,#$N=&%R`.V7:V_:,!2&^8I_
uupacktool.pl -p lib/CPANPLUS/t/dummy-CPAN/authors/id/E/EU/EUNOXS/Foo-Bar-0.01.tar.gz lib/CPANPLUS/t/dummy-CPAN/authors/id/E/EU/EUNOXS/Foo-Bar-0.01.tar.gz.packed
-Created at Sat Jul 7 11:15:17 2007
+Created at Wed Aug 15 16:13:41 2007
#########################################################################
__UU__
M'XL("/8X34("`T9O;RU"87(M,"XP,2YT87(`[9KQ;]I&%,?Y^?Z*1YE$(A5C
uupacktool.pl -p lib/CPANPLUS/t/dummy-CPAN/authors/id/E/EU/EUXS/Foo-Bar-0.01.tar.gz lib/CPANPLUS/t/dummy-CPAN/authors/id/E/EU/EUXS/Foo-Bar-0.01.tar.gz.packed
-Created at Sat Jul 7 11:15:17 2007
+Created at Wed Aug 15 16:13:41 2007
#########################################################################
__UU__
M'XL("`DY34("`T9O;RU"87(M,"XP,2YT87(`[5IK3]M(%,U7YE=<H%5``A.;
uupacktool.pl -p lib/CPANPLUS/t/dummy-CPAN/authors/id/M/MB/MBNOXS/Foo-Bar-0.01.tar.gz lib/CPANPLUS/t/dummy-CPAN/authors/id/M/MB/MBNOXS/Foo-Bar-0.01.tar.gz.packed
-Created at Sat Jul 7 11:15:17 2007
+Created at Wed Aug 15 16:13:41 2007
#########################################################################
__UU__
M'XL("-<X34(``T9O;RU"87(M,"XP,2YT87(`[9E;;]HP%,=Y]J<X+9722@-R
uupacktool.pl -p lib/CPANPLUS/t/dummy-CPAN/authors/id/M/MB/MBXS/Foo-Bar-0.01.tar.gz lib/CPANPLUS/t/dummy-CPAN/authors/id/M/MB/MBXS/Foo-Bar-0.01.tar.gz.packed
-Created at Sat Jul 7 11:15:17 2007
+Created at Wed Aug 15 16:13:41 2007
#########################################################################
__UU__
M'XL("-\X34(``T9O;RU"87(M,"XP,2YT87(`[5K_3QI)%/=7YZ]XU39H(BN[
uupacktool.pl -p lib/CPANPLUS/t/dummy-CPAN/modules/02packages.details.txt.gz lib/CPANPLUS/t/dummy-CPAN/modules/02packages.details.txt.gz.packed
-Created at Sat Jul 7 11:15:17 2007
+Created at Wed Aug 15 16:13:41 2007
#########################################################################
__UU__
M'XL("-%#OT4``S`R<&%C:V%G97,N9&5T86EL<RYT>'0`E=-1:]LP$`#@=_^*
uupacktool.pl -p lib/CPANPLUS/t/dummy-CPAN/modules/03modlist.data.gz lib/CPANPLUS/t/dummy-CPAN/modules/03modlist.data.gz.packed
-Created at Sat Jul 7 11:15:18 2007
+Created at Wed Aug 15 16:13:41 2007
#########################################################################
__UU__
M'XL("#'FO$4``S`S;6]D;&ES="YD871A`%U3_6O;,!#].?HKCBXC"20A=<@&
sub gimme_conf {
- my $conf = CPANPLUS::Configure->new();
+
+ ### don't load any other configs than the heuristic one
+ ### during tests. They might hold broken/incorrect data
+ ### for our test suite. Bug [perl #43629] showed this.
+ my $conf = CPANPLUS::Configure->new( load_configs => 0 );
$conf->set_conf( hosts => [ {
path => 'dummy-CPAN',
scheme => 'file',