Update to 0.072

- New upstream release 0.072
  - Fixed incorrect error argument for File::Path functions (mkpath and
    remove_tree)
This commit is contained in:
Paul Howarth 2015-07-21 11:32:32 +01:00
parent 0b3015d089
commit 1a4fa64436
3 changed files with 8 additions and 31 deletions

View File

@ -1,24 +0,0 @@
diff --git a/lib/Path/Tiny.pm b/lib/Path/Tiny.pm
index aa194be..a0ee46f 100644
--- a/lib/Path/Tiny.pm
+++ b/lib/Path/Tiny.pm
@@ -1112,7 +1112,7 @@ sub mkpath {
my ( $self, $args ) = @_;
$args = {} unless ref $args eq 'HASH';
my $err;
- $args->{err} = \$err unless defined $args->{err};
+ $args->{error} = \$err unless defined $args->{error};
require File::Path;
my @dirs = File::Path::make_path( $self->[PATH], $args );
if ( $err && @$err ) {
@@ -1369,8 +1369,8 @@ sub remove_tree {
return 0 if !-e $self->[PATH] && !-l $self->[PATH];
$args = {} unless ref $args eq 'HASH';
my $err;
- $args->{err} = \$err unless defined $args->{err};
- $args->{safe} = 1 unless defined $args->{safe};
+ $args->{error} = \$err unless defined $args->{error};
+ $args->{safe} = 1 unless defined $args->{safe};
require File::Path;
my $count = File::Path::remove_tree( $self->[PATH], $args );

View File

@ -1,12 +1,11 @@
Name: perl-Path-Tiny
Version: 0.070
Release: 2%{?dist}
Version: 0.072
Release: 1%{?dist}
Summary: File path utility
Group: Development/Libraries
License: ASL 2.0
URL: http://search.cpan.org/dist/Path-Tiny/
Source0: http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Path-Tiny-%{version}.tar.gz
Patch0: Path-Tiny-0.070-GH144.patch
BuildArch: noarch
# Module Build
BuildRequires: coreutils
@ -86,9 +85,6 @@ CRLF translation.
%prep
%setup -q -n Path-Tiny-%{version}
# Fixed incorrect error argument for File::Path functions (mkpath and remove_tree)
%patch0 -p1
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
@ -108,6 +104,11 @@ make test
%{_mandir}/man3/Path::Tiny.3*
%changelog
* Tue Jul 21 2015 Paul Howarth <paul@city-fan.org> - 0.072-1
- Update to 0.072
- Fixed incorrect error argument for File::Path functions (mkpath and
remove_tree)
* Mon Jul 20 2015 Paul Howarth <paul@city-fan.org> - 0.070-2
- Fixed incorrect error argument for File::Path functions (mkpath and
remove_tree) (GH#144)

View File

@ -1 +1 @@
3f58e84a32109fe37d6dc4bafef6bf47 Path-Tiny-0.070.tar.gz
840696b295230682c727297c87fe42d6 Path-Tiny-0.072.tar.gz