/[pkgs]/devel/perl/perl-5.10.0-Archive-Extract-onlystdout.patch
ViewVC logotype

Contents of /devel/perl/perl-5.10.0-Archive-Extract-onlystdout.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Wed Mar 11 22:01:05 2009 UTC (8 months, 1 week ago) by spot
Branch: MAIN
CVS Tags: F-12-split, perl-5_10_0-63_fc11, perl-5_10_0-61_fc11, perl-5_10_0-80_fc12, perl-5_10_0-81_fc12, perl-5_10_0-84_fc13, perl-5_10_0-82_fc13, perl-5_10_0-77_fc12, perl-5_10_0-83_fc13, perl-5_10_0-71_fc12, perl-5_10_0-75_fc12, perl-5_10_0-73_fc12, perl-5_10_0-68_fc11, perl-5_10_0-67_fc11, perl-5_10_0-64_fc11, perl-5_10_0-72_fc12, F-11-split, perl-5_10_0-62_fc11, perl-5_10_0-69_fc12, perl-5_10_0-79_fc12, perl-5_10_0-78_fc12, perl-5_10_0-70_fc12, perl-5_10_0-74_fc12, perl-5_10_0-66_fc11, perl-5_10_0-65_fc11, perl-5_10_0-76_fc12, HEAD
File MIME type: text/x-patch
reorder @INC, fix bz 489204, merge useful debian patches
1 diff -up perl-5.10.0/lib/Archive/Extract.pm.BAD perl-5.10.0/lib/Archive/Extract.pm
2 --- perl-5.10.0/lib/Archive/Extract.pm.BAD 2009-03-10 15:25:06.000000000 -0400
3 +++ perl-5.10.0/lib/Archive/Extract.pm 2009-03-10 15:25:11.000000000 -0400
4 @@ -550,12 +550,19 @@ sub _untar_bin {
5 $self->bin_tar, '-tf', '-'] :
6 [$self->bin_tar, '-tf', $self->archive];
7
8 - ### run the command ###
9 + ### run the command
10 + ### newer versions of 'tar' (1.21 and up) now print record size
11 + ### to STDERR as well if v OR t is given (used to be both). This
12 + ### is a 'feature' according to the changelog, so we must now only
13 + ### inspect STDOUT, otherwise, failures like these occur:
14 + ### nntp.perl.org/group/perl.cpan.testers/2009/02/msg3230366.html
15 my $buffer = '';
16 - unless( scalar run( command => $cmd,
17 + my @out = run( command => $cmd,
18 buffer => \$buffer,
19 - verbose => $DEBUG )
20 - ) {
21 + verbose => $DEBUG );
22 +
23 + ### command was unsuccessful
24 + unless( $out[0] ) {
25 return $self->_error(loc(
26 "Error listing contents of archive '%1': %2",
27 $self->archive, $buffer ));
28 @@ -578,7 +585,8 @@ sub _untar_bin {
29 \s+ [\d,.]+ \s tape \s blocks
30 |x ? $1 : $_);
31
32 - } split $/, $buffer;
33 + ### only STDOUT, see above
34 + } map { split $/, $_ } @{$out[3]};
35
36 ### store the files that are in the archive ###
37 $self->files(\@files);

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2