This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update Archive-Tar to CPAN version 1.68
authorChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Wed, 18 Aug 2010 10:20:06 +0000 (11:20 +0100)
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Wed, 18 Aug 2010 10:20:06 +0000 (11:20 +0100)
  [DELTA]

  * important changes in version 1.68 17/08/2010
  - Apply a patch from Colin Newell that checks whether long files can be created or
    not in 02_methods.t. Hopefully resolves RT #57312 and RT #56163

  Most importantly it should resolve test failures when building on encrypted
  filesystems.

Porting/Maintainers.pl
cpan/Archive-Tar/lib/Archive/Tar.pm
cpan/Archive-Tar/lib/Archive/Tar/Constant.pm
cpan/Archive-Tar/lib/Archive/Tar/File.pm
cpan/Archive-Tar/t/02_methods.t

index 9b839d9..14b266e 100644 (file)
@@ -197,7 +197,7 @@ use File::Glob qw(:case);
     'Archive::Tar' =>
        {
        'MAINTAINER'    => 'kane',
-       'DISTRIBUTION'  => 'BINGOS/Archive-Tar-1.66.tar.gz',
+       'DISTRIBUTION'  => 'BINGOS/Archive-Tar-1.68.tar.gz',
        'FILES'         => q[cpan/Archive-Tar],
        'EXCLUDED'      => [ qw(Makefile.PL) ],
        'UPSTREAM'      => 'cpan',
index 2e21bbb..83834c4 100644 (file)
@@ -31,7 +31,7 @@ use vars qw[$DEBUG $error $VERSION $WARN $FOLLOW_SYMLINK $CHOWN $CHMOD
 $DEBUG                  = 0;
 $WARN                   = 1;
 $FOLLOW_SYMLINK         = 0;
-$VERSION                = "1.66";
+$VERSION                = "1.68";
 $CHOWN                  = 1;
 $CHMOD                  = 1;
 $SAME_PERMISSIONS       = $> == 0 ? 1 : 0;
index 3353d1b..b688024 100644 (file)
@@ -3,7 +3,7 @@ package Archive::Tar::Constant;
 BEGIN {
     require Exporter;
     
-    $VERSION    = '1.66';
+    $VERSION    = '1.68';
     @ISA        = qw[Exporter];
 
     require Time::Local if $^O eq "MacOS";
index 1e90e9a..6dce9b6 100644 (file)
@@ -13,7 +13,7 @@ use Archive::Tar::Constant;
 
 use vars qw[@ISA $VERSION];
 #@ISA        = qw[Archive::Tar];
-$VERSION    = '1.66';
+$VERSION    = '1.68';
 
 ### set value to 1 to oct() it during the unpack ###
 my $tmpl = [
index 7b212f6..b740594 100644 (file)
@@ -63,6 +63,20 @@ my $LONG_FILE = qq[directory/really-really-really-really-really-really-really-re
 my $TOO_LONG    =   ($^O eq 'MSWin32' or $^O eq 'cygwin' or $^O eq 'VMS')
                     && length( cwd(). $LONG_FILE ) > 247;
 
+if(!$TOO_LONG) {
+    my $alt = File::Spec->catfile( cwd(), $LONG_FILE);
+    eval 'mkpath([$alt]);';
+    if($@)
+    {
+        $TOO_LONG = 1;
+    }
+    else
+    {
+        $@ = '';
+        my $base = File::Spec->catfile( cwd(), 'directory');
+        rmtree $base;
+    }
+}
 ### warn if we are going to skip long file names
 if ($TOO_LONG) {
     diag("No long filename support - long filename extraction disabled") if ! $ENV{PERL_CORE};