0.070 bump
This commit is contained in:
parent
db33e9f856
commit
ee525c1f43
1
.gitignore
vendored
1
.gitignore
vendored
@ -24,3 +24,4 @@
|
||||
/HTTP-Tiny-0.058.tar.gz
|
||||
/HTTP-Tiny-0.064.tar.gz
|
||||
/HTTP-Tiny-0.068.tar.gz
|
||||
/HTTP-Tiny-0.070.tar.gz
|
||||
|
@ -1,4 +1,4 @@
|
||||
From 1ec3e5901a982222e0923a0d68475ed7a40ffb5a Mon Sep 17 00:00:00 2001
|
||||
From ddda87fb08ca523115be1ffd6dec8442e47bc20b Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
||||
Date: Wed, 27 Nov 2013 10:45:39 +0100
|
||||
Subject: [PATCH] Croak on failed write into a file
|
||||
@ -16,21 +16,21 @@ Signed-off-by: Petr Písař <ppisar@redhat.com>
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/HTTP/Tiny.pm b/lib/HTTP/Tiny.pm
|
||||
index 6c529bb..1cb6072 100644
|
||||
index 541befe..b3fffd0 100644
|
||||
--- a/lib/HTTP/Tiny.pm
|
||||
+++ b/lib/HTTP/Tiny.pm
|
||||
@@ -300,7 +300,10 @@ sub mirror {
|
||||
sysopen my $fh, $tempfile, Fcntl::O_CREAT()|Fcntl::O_EXCL()|Fcntl::O_WRONLY()
|
||||
or Carp::croak(qq/Error: Could not create temporary file $tempfile for downloading: $!\n/);
|
||||
or _croak(qq/Error: Could not create temporary file $tempfile for downloading: $!\n/);
|
||||
binmode $fh;
|
||||
- $args->{data_callback} = sub { print {$fh} $_[0] };
|
||||
+ $args->{data_callback} = sub {
|
||||
+ print {$fh} $_[0]
|
||||
+ or Carp::croak(qq/Error: Could not write into temporary file $tempfile: $!\n/);
|
||||
+ or _croak(qq/Error: Could not write into temporary file $tempfile: $!\n/);
|
||||
+ };
|
||||
my $response = $self->request('GET', $url, $args);
|
||||
close $fh
|
||||
or Carp::croak(qq/Error: Caught error closing temporary file $tempfile: $!\n/);
|
||||
or _croak(qq/Error: Caught error closing temporary file $tempfile: $!\n/);
|
||||
--
|
||||
2.7.4
|
||||
|
@ -1,5 +1,5 @@
|
||||
Name: perl-HTTP-Tiny
|
||||
Version: 0.068
|
||||
Version: 0.070
|
||||
Release: 1%{?dist}
|
||||
Summary: Small, simple, correct HTTP/1.1 client
|
||||
License: GPL+ or Artistic
|
||||
@ -8,7 +8,7 @@ URL: http://search.cpan.org/dist/HTTP-Tiny/
|
||||
Source0: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/HTTP-Tiny-%{version}.tar.gz
|
||||
# Check for write failure, bug #1031096, refused by upstream,
|
||||
# <https://github.com/chansen/p5-http-tiny/issues/32>
|
||||
Patch0: HTTP-Tiny-0.068-Croak-on-failed-write-into-a-file.patch
|
||||
Patch0: HTTP-Tiny-0.070-Croak-on-failed-write-into-a-file.patch
|
||||
BuildArch: noarch
|
||||
BuildRequires: findutils
|
||||
BuildRequires: make
|
||||
@ -48,6 +48,7 @@ BuildRequires: perl(open)
|
||||
BuildRequires: perl(Test::More) >= 0.96
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(bytes)
|
||||
Requires: perl(Carp)
|
||||
Requires: perl(Fcntl)
|
||||
Recommends: perl(IO::Socket::IP) >= 0.32
|
||||
Recommends: perl(IO::Socket::SSL) >= 1.56
|
||||
@ -86,6 +87,9 @@ make test
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Mon Oct 10 2016 Petr Pisar <ppisar@redhat.com> - 0.070-1
|
||||
- 0.070 bump
|
||||
|
||||
* Mon Sep 26 2016 Petr Pisar <ppisar@redhat.com> - 0.068-1
|
||||
- 0.068 bump
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user