r18731 - in /trunk/libfile-copy-recursive-perl: Changes META.yml README Recursive.pm debian/changelog
gregoa-guest at users.alioth.debian.org
gregoa-guest at users.alioth.debian.org
Thu Apr 17 20:10:22 UTC 2008
Author: gregoa-guest
Date: Thu Apr 17 20:10:21 2008
New Revision: 18731
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=18731
Log:
New upstream release.
Modified:
trunk/libfile-copy-recursive-perl/Changes
trunk/libfile-copy-recursive-perl/META.yml
trunk/libfile-copy-recursive-perl/README
trunk/libfile-copy-recursive-perl/Recursive.pm
trunk/libfile-copy-recursive-perl/debian/changelog
Modified: trunk/libfile-copy-recursive-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libfile-copy-recursive-perl/Changes?rev=18731&op=diff
==============================================================================
--- trunk/libfile-copy-recursive-perl/Changes (original)
+++ trunk/libfile-copy-recursive-perl/Changes Thu Apr 17 20:10:21 2008
@@ -1,4 +1,7 @@
Revision history for Perl extension File::Copy::Recursive.
+
+0.36 Wed Apr 16 15:32:36 2008
+ - made all bareword file handles be lexical variables if the perl is new enough to support it (5.6.0 and up, see 'Indirect Filehandles' in perlopentut)
0.35 Mon Aug 27 16:18:53 2007
- fixed rt 29008
Modified: trunk/libfile-copy-recursive-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libfile-copy-recursive-perl/META.yml?rev=18731&op=diff
==============================================================================
--- trunk/libfile-copy-recursive-perl/META.yml (original)
+++ trunk/libfile-copy-recursive-perl/META.yml Thu Apr 17 20:10:21 2008
@@ -1,7 +1,7 @@
# http://module-build.sourceforge.net/META-spec.html
#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
name: File-Copy-Recursive
-version: 0.35
+version: 0.36
version_from: Recursive.pm
installdirs: site
requires:
@@ -9,4 +9,4 @@
File::Spec: 0
distribution_type: module
-generated_by: ExtUtils::MakeMaker version 6.17
+generated_by: ExtUtils::MakeMaker version 6.30
Modified: trunk/libfile-copy-recursive-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libfile-copy-recursive-perl/README?rev=18731&op=diff
==============================================================================
--- trunk/libfile-copy-recursive-perl/README (original)
+++ trunk/libfile-copy-recursive-perl/README Thu Apr 17 20:10:21 2008
@@ -1,4 +1,4 @@
-File/Copy/Recursive version 0.35
+File/Copy/Recursive version 0.36
================================
This module has 3 functions, one to copy files only, one to copy directories
Modified: trunk/libfile-copy-recursive-perl/Recursive.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libfile-copy-recursive-perl/Recursive.pm?rev=18731&op=diff
==============================================================================
--- trunk/libfile-copy-recursive-perl/Recursive.pm (original)
+++ trunk/libfile-copy-recursive-perl/Recursive.pm Thu Apr 17 20:10:21 2008
@@ -20,7 +20,7 @@
require Exporter;
@ISA = qw(Exporter);
@EXPORT_OK = qw(fcopy rcopy dircopy fmove rmove dirmove pathmk pathrm pathempty pathrmdir);
-$VERSION = '0.35';
+$VERSION = '0.36';
$MaxDepth = 0;
$KeepMode = 1;
@@ -199,9 +199,18 @@
}
$level++;
- opendir(STR_DH, $str) or return;
- my @files = grep( $_ ne '.' && $_ ne '..', readdir(STR_DH));
- closedir STR_DH;
+
+ my @files;
+ if ( $] < 5.006 ) {
+ opendir(STR_DH, $str) or return;
+ @files = grep( $_ ne '.' && $_ ne '..', readdir(STR_DH));
+ closedir STR_DH;
+ }
+ else {
+ opendir(my $str_dh, $str) or return;
+ @files = grep( $_ ne '.' && $_ ne '..', readdir($str_dh));
+ closedir $str_dh;
+ }
for my $file (@files) {
my ($file_ut) = $file =~ m{ (.*) }xms;
@@ -274,9 +283,18 @@
return 2 if !-d $pth;
- opendir(PTH_DH, $pth) or return;
-
- for my $name (grep !/^\.+$/, readdir(PTH_DH)) {
+ my @names;
+ my $pth_dh;
+ if ( $] < 5.006 ) {
+ opendir(PTH_DH, $pth) or return;
+ @names = grep !/^\.+$/, readdir(PTH_DH);
+ }
+ else {
+ opendir($pth_dh, $pth) or return;
+ @names = grep !/^\.+$/, readdir($pth_dh);
+ }
+
+ for my $name (@names) {
my ($name_ut) = $name =~ m{ (.*) }xms;
my $flpth = File::Spec->catdir($pth, $name_ut);
@@ -291,8 +309,13 @@
}
}
- closedir PTH_DH;
-
+ if ( $] < 5.006 ) {
+ closedir PTH_DH;
+ }
+ else {
+ closedir $pth_dh;
+ }
+
1;
}
Modified: trunk/libfile-copy-recursive-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libfile-copy-recursive-perl/debian/changelog?rev=18731&op=diff
==============================================================================
--- trunk/libfile-copy-recursive-perl/debian/changelog (original)
+++ trunk/libfile-copy-recursive-perl/debian/changelog Thu Apr 17 20:10:21 2008
@@ -1,3 +1,9 @@
+libfile-copy-recursive-perl (0.36-1) UNRELEASED; urgency=low
+
+ * New upstream release.
+
+ -- gregor herrmann <gregor+debian at comodo.priv.at> Thu, 17 Apr 2008 22:09:28 +0200
+
libfile-copy-recursive-perl (0.35-2) unstable; urgency=low
* Donate package to Debian Perl Group
More information about the Pkg-perl-cvs-commits
mailing list