summaryrefslogtreecommitdiff
path: root/Master/tlpkg/tlperl/lib/App
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-04-26 22:16:26 +0000
committerKarl Berry <karl@freefriends.org>2015-04-26 22:16:26 +0000
commit342e672574c4e67d510e46ab6acd0e21a7d0cf54 (patch)
tree79e04202d08c0404bbd780bd26c1e34710e539b6 /Master/tlpkg/tlperl/lib/App
parentbe2706af7c57a0ef0f4d4e9f684ca4ef74922a82 (diff)
(tl)perl 5.20.2 for windows, from siep
git-svn-id: svn://tug.org/texlive/trunk@37064 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/tlperl/lib/App')
-rw-r--r--Master/tlpkg/tlperl/lib/App/Cpan.pm17
-rw-r--r--Master/tlpkg/tlperl/lib/App/Prove.pm15
-rw-r--r--Master/tlpkg/tlperl/lib/App/Prove/State.pm11
-rw-r--r--Master/tlpkg/tlperl/lib/App/Prove/State/Result.pm8
-rw-r--r--Master/tlpkg/tlperl/lib/App/Prove/State/Result/Test.pm9
5 files changed, 32 insertions, 28 deletions
diff --git a/Master/tlpkg/tlperl/lib/App/Cpan.pm b/Master/tlpkg/tlperl/lib/App/Cpan.pm
index 6dc24922a78..b548bcc0ae6 100644
--- a/Master/tlpkg/tlperl/lib/App/Cpan.pm
+++ b/Master/tlpkg/tlperl/lib/App/Cpan.pm
@@ -1,11 +1,12 @@
package App::Cpan;
-use 5.008;
use strict;
use warnings;
use vars qw($VERSION);
-$VERSION = '1.61';
+use if $] < 5.008 => "IO::Scalar";
+
+$VERSION = '1.62';
=head1 NAME
@@ -124,7 +125,7 @@ for a new, custom configuration.
=item -l
-List all installed modules wth their versions
+List all installed modules with their versions
=item -L author [ author ... ]
@@ -396,7 +397,7 @@ sub _process_setup_options
Just do it.
-The C<run> method returns 0 on success and a postive number on
+The C<run> method returns 0 on success and a positive number on
failure. See the section on EXIT CODES for details on the values.
=cut
@@ -579,7 +580,12 @@ my @skip_lines = (
sub _get_cpanpm_last_line
{
- open my($fh), "<", \ $scalar;
+ my $fh;
+ if ($] < 5.008) {
+ $fh = IO::Scalar->new(\ $scalar);
+ } else {
+ eval q{open $fh, "<", \\ $scalar;};
+ }
my @lines = <$fh>;
@@ -959,6 +965,7 @@ sub _dump_config # -J
my $fh = $args->[0] || \*STDOUT;
+ local $Data::Dumper::Sortkeys = 1;
my $dd = Data::Dumper->new(
[$CPAN::Config],
['$CPAN::Config']
diff --git a/Master/tlpkg/tlperl/lib/App/Prove.pm b/Master/tlpkg/tlperl/lib/App/Prove.pm
index 67c691bf93e..44aaf6dda30 100644
--- a/Master/tlpkg/tlperl/lib/App/Prove.pm
+++ b/Master/tlpkg/tlperl/lib/App/Prove.pm
@@ -1,27 +1,28 @@
package App::Prove;
use strict;
-use vars qw($VERSION @ISA);
+use warnings;
-use TAP::Object ();
use TAP::Harness;
-use TAP::Parser::Utils qw( split_shell );
+use Text::ParseWords qw(shellwords);
use File::Spec;
use Getopt::Long;
use App::Prove::State;
use Carp;
+use base 'TAP::Object';
+
=head1 NAME
App::Prove - Implements the C<prove> command.
=head1 VERSION
-Version 3.26
+Version 3.30
=cut
-$VERSION = '3.26';
+our $VERSION = '3.30';
=head1 DESCRIPTION
@@ -51,8 +52,6 @@ use constant PLUGINS => 'App::Prove::Plugin';
my @ATTR;
BEGIN {
- @ISA = qw(TAP::Object);
-
@ATTR = qw(
archive argv blib show_count color directives exec failures comments
formatter harness includes modules plugins jobs lib merge parse quiet
@@ -574,7 +573,7 @@ sub _get_switches {
push @switches, '-w';
}
- push @switches, split_shell( $ENV{HARNESS_PERL_SWITCHES} );
+ push @switches, shellwords( $ENV{HARNESS_PERL_SWITCHES} ) if defined $ENV{HARNESS_PERL_SWITCHES};
return @switches ? \@switches : ();
}
diff --git a/Master/tlpkg/tlperl/lib/App/Prove/State.pm b/Master/tlpkg/tlperl/lib/App/Prove/State.pm
index a9c38de63e9..519ba01d6c7 100644
--- a/Master/tlpkg/tlperl/lib/App/Prove/State.pm
+++ b/Master/tlpkg/tlperl/lib/App/Prove/State.pm
@@ -1,7 +1,7 @@
package App::Prove::State;
use strict;
-use vars qw($VERSION @ISA);
+use warnings;
use File::Find;
use File::Spec;
@@ -10,10 +10,9 @@ use Carp;
use App::Prove::State::Result;
use TAP::Parser::YAMLish::Reader ();
use TAP::Parser::YAMLish::Writer ();
-use TAP::Base;
+use base 'TAP::Base';
BEGIN {
- @ISA = qw( TAP::Base );
__PACKAGE__->mk_methods('result_class');
}
@@ -26,11 +25,11 @@ App::Prove::State - State storage for the C<prove> command.
=head1 VERSION
-Version 3.26
+Version 3.30
=cut
-$VERSION = '3.26';
+our $VERSION = '3.30';
=head1 DESCRIPTION
@@ -41,7 +40,7 @@ and the operations that may be performed on it.
=head1 SYNOPSIS
# Re-run failed tests
- $ prove --state=fail,save -rbv
+ $ prove --state=failed,save -rbv
=cut
diff --git a/Master/tlpkg/tlperl/lib/App/Prove/State/Result.pm b/Master/tlpkg/tlperl/lib/App/Prove/State/Result.pm
index 7bb4457efb8..8e44ea3a4b1 100644
--- a/Master/tlpkg/tlperl/lib/App/Prove/State/Result.pm
+++ b/Master/tlpkg/tlperl/lib/App/Prove/State/Result.pm
@@ -1,10 +1,10 @@
package App::Prove::State::Result;
use strict;
+use warnings;
use Carp 'croak';
use App::Prove::State::Result::Test;
-use vars qw($VERSION);
use constant STATE_VERSION => 1;
@@ -14,11 +14,11 @@ App::Prove::State::Result - Individual test suite results.
=head1 VERSION
-Version 3.26
+Version 3.30
=cut
-$VERSION = '3.26';
+our $VERSION = '3.30';
=head1 DESCRIPTION
@@ -29,7 +29,7 @@ single test suite run.
=head1 SYNOPSIS
# Re-run failed tests
- $ prove --state=fail,save -rbv
+ $ prove --state=failed,save -rbv
=cut
diff --git a/Master/tlpkg/tlperl/lib/App/Prove/State/Result/Test.pm b/Master/tlpkg/tlperl/lib/App/Prove/State/Result/Test.pm
index f626f1da774..21f20a12e61 100644
--- a/Master/tlpkg/tlperl/lib/App/Prove/State/Result/Test.pm
+++ b/Master/tlpkg/tlperl/lib/App/Prove/State/Result/Test.pm
@@ -1,8 +1,7 @@
package App::Prove::State::Result::Test;
use strict;
-
-use vars qw($VERSION);
+use warnings;
=head1 NAME
@@ -10,11 +9,11 @@ App::Prove::State::Result::Test - Individual test results.
=head1 VERSION
-Version 3.26
+Version 3.30
=cut
-$VERSION = '3.26';
+our $VERSION = '3.30';
=head1 DESCRIPTION
@@ -25,7 +24,7 @@ single test.
=head1 SYNOPSIS
# Re-run failed tests
- $ prove --state=fail,save -rbv
+ $ prove --state=failed,save -rbv
=cut