r31973 - in /trunk/libpar-perl: AUTHORS ChangeLog MANIFEST META.yml debian/changelog lib/PAR.pm t/60-cleanup.t

eloy at users.alioth.debian.org eloy at users.alioth.debian.org
Thu Mar 12 10:04:13 UTC 2009


Author: eloy
Date: Thu Mar 12 10:04:10 2009
New Revision: 31973

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=31973
Log:
new upstream version

Removed:
    trunk/libpar-perl/t/60-cleanup.t
Modified:
    trunk/libpar-perl/AUTHORS
    trunk/libpar-perl/ChangeLog
    trunk/libpar-perl/MANIFEST
    trunk/libpar-perl/META.yml
    trunk/libpar-perl/debian/changelog
    trunk/libpar-perl/lib/PAR.pm

Modified: trunk/libpar-perl/AUTHORS
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpar-perl/AUTHORS?rev=31973&op=diff
==============================================================================
--- trunk/libpar-perl/AUTHORS (original)
+++ trunk/libpar-perl/AUTHORS Thu Mar 12 10:04:10 2009
@@ -70,6 +70,7 @@
 Jesse Vincent                 (JESSE)
 Jody Belka                    (KNEW)
 Johan Lindstroem              (JOHANL)
+Johannes Lode
 John McMahon
 John Siracusa                 (JSIRACUSA)
 Jonathan Leffler              (JOHNL)

Modified: trunk/libpar-perl/ChangeLog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpar-perl/ChangeLog?rev=31973&op=diff
==============================================================================
--- trunk/libpar-perl/ChangeLog (original)
+++ trunk/libpar-perl/ChangeLog Thu Mar 12 10:04:10 2009
@@ -1,3 +1,11 @@
+
+[Changes for 0.991 - Mar 10, 2009]
+  - Promote previous release to stable release.
+
+[Changes for 0.989_01 - Mar  2, 2009]
+* Bug fixes, etc.
+  - Track the locations of all archives that have been extracted to
+    $ENV{PAR_TEMP}/inc in this run.
 
 [Changes for 0.988 - Mar  1, 2009]
   - Promote previous release to stable release.

Modified: trunk/libpar-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpar-perl/MANIFEST?rev=31973&op=diff
==============================================================================
--- trunk/libpar-perl/MANIFEST (original)
+++ trunk/libpar-perl/MANIFEST Thu Mar 12 10:04:10 2009
@@ -29,7 +29,6 @@
 t/01-basic.t
 t/40-par-hashref.t
 t/50-autoloaderfix.t
-t/60-cleanup.t
 t/hello.par
 t/Hello.pm
 TODO

Modified: trunk/libpar-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpar-perl/META.yml?rev=31973&op=diff
==============================================================================
--- trunk/libpar-perl/META.yml (original)
+++ trunk/libpar-perl/META.yml Thu Mar 12 10:04:10 2009
@@ -16,7 +16,7 @@
 provides:
   PAR:
     file: lib/PAR.pm
-    version: 0.988
+    version: 0.991
   PAR::Heavy:
     file: lib/PAR/Heavy.pm
     version: 0.11
@@ -35,4 +35,4 @@
   perl: 5.6.0
 resources:
   license: http://dev.perl.org/licenses/
-version: 0.988
+version: 0.991

Modified: trunk/libpar-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpar-perl/debian/changelog?rev=31973&op=diff
==============================================================================
--- trunk/libpar-perl/debian/changelog (original)
+++ trunk/libpar-perl/debian/changelog Thu Mar 12 10:04:10 2009
@@ -1,3 +1,9 @@
+libpar-perl (0.991-1) UNRELEASED; urgency=low
+
+  * (NOT RELEASED YET) New upstream release
+
+ -- Krzysztof Krzyżaniak (eloy) <eloy at debian.org>  Thu, 12 Mar 2009 11:02:12 +0100
+
 libpar-perl (0.988-1) unstable; urgency=low
 
   * New upstream release

Modified: trunk/libpar-perl/lib/PAR.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpar-perl/lib/PAR.pm?rev=31973&op=diff
==============================================================================
--- trunk/libpar-perl/lib/PAR.pm (original)
+++ trunk/libpar-perl/lib/PAR.pm Thu Mar 12 10:04:10 2009
@@ -1,5 +1,5 @@
 package PAR;
-$PAR::VERSION = '0.988';
+$PAR::VERSION = '0.991';
 
 use 5.006;
 use strict;
@@ -35,7 +35,7 @@
 
 =head1 VERSION
 
-This document describes release 0.988 of PAR, released March 1, 2009.
+This document describes release 0.989_01 of PAR, released March 2, 2009.
 
 =head1 SYNOPSIS
 
@@ -317,6 +317,7 @@
 use vars qw(%FileCache);            # The Zip-file file-name-cache
                                     # Layout:
                                     # $FileCache{$ZipObj}{$FileName} = $Member
+use vars qw(%ArchivesExtracted);    # Associates archive-zip-object => full extraction path
 
 my $ver  = $Config{version};
 my $arch = $Config{archname};
@@ -379,6 +380,11 @@
         push @PAR_INC, unpar($progname, undef, undef, 1);
 
         _extract_inc($progname) unless $ENV{PAR_CLEAN};
+        if ($LibCache{$progname}) {
+          # XXX bad: this us just a good guess
+          require File::Spec;
+          $ArchivesExtracted{$progname} = File::Spec->catdir($ENV{PAR_TEMP}, 'inc');
+        }
 
         my $zip = $LibCache{$progname};
         my $member = _first_member( $zip,
@@ -558,6 +564,26 @@
     return;
 }
 
+# Given an Archive::Zip object, this finds the first 
+# Archive::Zip member whose file name matches the
+# regular expression
+sub _first_member_matching {
+    my $zip = shift;
+    my $regex = shift;
+
+    my $cache = $FileCache{$zip};
+    $cache = $FileCache{$zip} = _make_file_cache($zip) if not $cache;
+
+    foreach my $name (keys %$cache) {
+      if ($name =~ $regex) {
+        return $cache->{$name};
+      }
+    }
+
+    return();
+}
+
+
 sub _run_member_from_par {
     my $member = shift;
     my $clear_stack = shift;
@@ -667,6 +693,8 @@
         }
         
         rmdir("$inc.lock");
+
+        $ArchivesExtracted{$is_handle ? $file_or_azip_handle->fileName() : $file_or_azip_handle} = $inc;
     }
 
     # add the freshly extracted directories to @INC,




More information about the Pkg-perl-cvs-commits mailing list