configure.gnu Crude emulation of GNU configure
cop.h Control operator header
Copying The GNU General Public License
+Cross/build-arm-n770-sh Cross-compilation
+Cross/cflags-cross-arm Cross-compilation
Cross/config Cross-compilation
Cross/config.sh-arm-linux Cross-compilation
Cross/config.sh-arm-linux-n770 Cross-compilation
-Cross/build-arm-n770-sh Cross-compilation
Cross/generate_config_sh Cross-compilation
Cross/installperl.patch Cross-compilation
Cross/Makefile Cross-compilation
-Cross/Makefile.SH.patch Cross-compilation
Cross/Makefile-cross-SH Cross-compilation
-Cross/cflags-cross-arm Cross-compilation
+Cross/Makefile.SH.patch Cross-compilation
Cross/README Cross-compilation
Cross/README.new Cross-compilation
Cross/TODO Cross-compilation
use vars qw( @EXPORT @ISA $VERSION );
@EXPORT = qw( shell fetch get install );
@ISA = qw( Exporter );
- $VERSION = "0.79_04"; #have to hardcode or cpan.org gets unhappy
+ $VERSION = "0.80"; #have to hardcode or cpan.org gets unhappy
}
### purely for backward compatibility, so we can call it from the commandline:
CPANPLUS::Internals::Report
];
-$VERSION = "0.79_04";
+$VERSION = "0.80";
=pod
BEGIN {
use vars qw[ $VERSION @ISA ];
@ISA = qw[ CPANPLUS::Shell::_Base::ReadLine ];
- $VERSION = "0.79_04";
+ $VERSION = "0.80";
}
load CPANPLUS::Shell;
use strict;
use CPANPLUS::Internals::Constants;
-### purposely avert messages and errors to a file? ###
-my $Trap_Output = @ARGV ? 0 : 1;
my $Config_pm = 'CPANPLUS/Config.pm';
### DO NOT FLUSH TILL THE END!!! we depend on all warnings being logged..
}
-{ local $CPANPLUS::Error::ERROR_FH = output_handle() if $Trap_Output;
-
- my $env = ENV_CPANPLUS_CONFIG;
+{ my $env = ENV_CPANPLUS_CONFIG;
local $ENV{$env} = $$;
my $ok = $c->init;
my $stack = CPANPLUS::Error->stack_as_string;
}
-{ local $CPANPLUS::Error::ERROR_FH = output_handle() if $Trap_Output;
-
- CPANPLUS::Error->flush;
+{ CPANPLUS::Error->flush;
{ ### try a bogus method call
my $x = $c->flubber('foo');
for my $callback ( keys %$callback_map ) {
- { local $CPANPLUS::Error::ERROR_FH = output_handle() unless @ARGV;
-
- my $rv = $callback_map->{$callback};
+ { my $rv = $callback_map->{$callback};
is( $rv, $cb->_callbacks->$callback->( $0, $$ ),
"Default callback '$callback' called" );
use Data::Dumper;
use File::Path ();
-### silence errors, unless you tell us not to ###
-local $CPANPLUS::Error::ERROR_FH = output_handle() unless @ARGV;
-
my $Conf = gimme_conf();
my $CB = CPANPLUS::Backend->new( $Conf );
my $conf = gimme_conf();
-### Redirect errors to file ###
-local $CPANPLUS::Error::ERROR_FH = output_handle() unless @ARGV;
-local $CPANPLUS::Error::MSG_FH = output_handle() unless @ARGV;
-
my $cb = CPANPLUS::Backend->new( $conf );
isa_ok($cb, "CPANPLUS::Internals" );
my $conf = gimme_conf();
-### purposely avert messages and errors to a file? ###
-my $Trap_Output = @ARGV ? 0 : 1;
-
my $Class = 'CPANPLUS::Backend';
### D::C has troubles with the 'use_ok' -- it finds the wrong paths.
### for now, do a 'use' instead
### test for things that look like real modules, but aren't ###
- { local $CPANPLUS::Error::MSG_FH = output_handle() if $Trap_Output;
- local $CPANPLUS::Error::ERROR_FH = output_handle() if $Trap_Output;
-
- my @map = (
+ { my @map = (
[ $Name . $$ => [
[qr/does not contain an author/,"Missing author part detected"],
[qr/Cannot find .+? in the module tree/,"Unable to find module"]
### global variables test ###
{ my $file = output_file();
- unlink $file; # just in case
+ ### this *has* to be set, as we're testing the contents of the file
+ ### to see if it matches what's stored in the buffer.
local $CPANPLUS::Error::MSG_FH = output_handle();
local $CPANPLUS::Error::ERROR_FH = output_handle();
_prepare_args _install_args _create_args]);
return $Init };
sub format_available { return $Available }
- sub prepare { return shift->status->prepared($Prepare) }
- sub create { return shift->status->created($Create) }
- sub install { return shift->status->installed($Install) }
+ sub prepare { return shift->status->prepared( $Prepare ) }
+ sub create { return shift->status->created( $Create ) }
+ sub install { return shift->status->installed( $Install ) }
}
use strict;
my $conf = gimme_conf();
my $cb = CPANPLUS::Backend->new( $conf );
-### Redirect errors to file ###
-local $CPANPLUS::Error::ERROR_FH = output_handle() unless @ARGV;
-local $CPANPLUS::Error::MSG_FH = output_handle() unless @ARGV;
-
### obsolete
#my $Format = '_test';
my $Module = 'CPANPLUS::Dist::_Test';
$conf->set_conf( cpantest => 0 );
### Redirect errors to file ###
-local $CPANPLUS::Error::ERROR_FH = output_handle() unless $Verbose;
-local $CPANPLUS::Error::MSG_FH = output_handle() unless $Verbose;
*STDERR = output_handle() unless $Verbose;
### dont uncomment this, it screws up where STDOUT goes and makes
}
### extract it, silence warnings/messages
-{ local $CPANPLUS::Error::MSG_FH = output_handle();
- local $CPANPLUS::Error::ERROR_FH = output_handle();
-
- my $where = $Mod->extract;
+{ my $where = $Mod->extract;
ok( -e $where, " Tarball extracted to '$where'" );
}
uupacktool.pl -p lib/CPANPLUS/t/dummy-CPAN/authors/01mailrc.txt.gz lib/CPANPLUS/t/dummy-CPAN/authors/01mailrc.txt.gz.packed
-Created at Tue May 29 08:55:16 2007
+Created at Sun Jun 17 14:15:09 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 Tue May 29 08:55:16 2007
+Created at Sun Jun 17 14:15:09 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 Tue May 29 08:55:16 2007
+Created at Sun Jun 17 14:15:09 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/EUNOXS/perl5.005_03.tar.gz lib/CPANPLUS/t/dummy-CPAN/authors/id/E/EU/EUNOXS/perl5.005_03.tar.gz.packed
-Created at Tue May 29 08:55:17 2007
+Created at Sun Jun 17 14:15:09 2007
#########################################################################
__UU__
M'XL(`'3DO44``^W/,0J`,`Q`T1RE)Y"T-O4XXN"DB%2]OR(*NNC4[;_E#\F0
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 Tue May 29 08:55:17 2007
+Created at Sun Jun 17 14:15:09 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 Tue May 29 08:55:17 2007
+Created at Sun Jun 17 14:15:09 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 Tue May 29 08:55:17 2007
+Created at Sun Jun 17 14:15:10 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 Tue May 29 08:55:17 2007
+Created at Sun Jun 17 14:15:10 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 Tue May 29 08:55:17 2007
+Created at Sun Jun 17 14:15:10 2007
#########################################################################
__UU__
M'XL("#'FO$4``S`S;6]D;&ES="YD871A`%U3_6O;,!#].?HKCBXC"20A=<@&
use strict;
use CPANPLUS::Configure;
+use CPANPLUS::Error ();
use File::Path qw[rmtree];
use FileHandle;
}
sub output_file { return $file }
+
+
+ my $env = 'PERL5_CPANPLUS_TEST_VERBOSE';
+ ### redirect output from msg() and error() output to file
+ unless( $ENV{$env} ) {
+
+ print "# To run tests in verbose mode, set ".
+ "\$ENV{PERL5_CPANPLUS_TEST_VERBOSE} = 1\n" unless $ENV{PERL_CORE};
+
+ unlink $file; # just in case
+
+ $CPANPLUS::Error::ERROR_FH =
+ $CPANPLUS::Error::ERROR_FH = output_handle();
+
+ $CPANPLUS::Error::MSG_FH =
+ $CPANPLUS::Error::MSG_FH = output_handle();
+
+ }
}
### regular file
} else {
- print "Deleting file '$path'\n" if $verbose;
+ print "# Deleting file '$path'\n" if $verbose;
1 while unlink $path;
}
}