From db33e9f856c79d471a09979128432f9ef3b5e08c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Mon, 26 Sep 2016 09:41:50 +0200
Subject: 0.068 bump

---
 .gitignore                                         |  1 +
 ...y-0.058-Croak-on-failed-write-into-a-file.patch | 36 ----------------------
 ...y-0.068-Croak-on-failed-write-into-a-file.patch | 36 ++++++++++++++++++++++
 perl-HTTP-Tiny.spec                                |  7 +++--
 sources                                            |  2 +-
 5 files changed, 43 insertions(+), 39 deletions(-)
 delete mode 100644 HTTP-Tiny-0.058-Croak-on-failed-write-into-a-file.patch
 create mode 100644 HTTP-Tiny-0.068-Croak-on-failed-write-into-a-file.patch

diff --git a/.gitignore b/.gitignore
index 83c5551..b0892da 100644
--- a/.gitignore
+++ b/.gitignore
@@ -23,3 +23,4 @@
 /HTTP-Tiny-0.056.tar.gz
 /HTTP-Tiny-0.058.tar.gz
 /HTTP-Tiny-0.064.tar.gz
+/HTTP-Tiny-0.068.tar.gz
diff --git a/HTTP-Tiny-0.058-Croak-on-failed-write-into-a-file.patch 
b/HTTP-Tiny-0.058-Croak-on-failed-write-into-a-file.patch
deleted file mode 100644
index 0488bde..0000000
--- a/HTTP-Tiny-0.058-Croak-on-failed-write-into-a-file.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From 782e0fffff52c0cd729bbcdbd18657df4331adc9 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
-Date: Wed, 27 Nov 2013 10:45:39 +0100
-Subject: [PATCH] Croak on failed write into a file
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-The mirror() method saves a document into a file. Any error while
-writing to the file, e.g. no disk space, was ignored. This patch fixes
-it by croaking on such I/O error.
-
-Signed-off-by: Petr Písař <ppi...@redhat.com>
----
- lib/HTTP/Tiny.pm | 5 ++++-
- 1 file changed, 4 insertions(+), 1 deletion(-)
-
-diff --git a/lib/HTTP/Tiny.pm b/lib/HTTP/Tiny.pm
-index 42653e0..a3def75 100644
---- a/lib/HTTP/Tiny.pm
-+++ b/lib/HTTP/Tiny.pm
-@@ -291,7 +291,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/);
-     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/);
-+    };
-     my $response = $self->request('GET', $url, $args);
-     close $fh
-         or Carp::croak(qq/Error: Caught error closing temporary file 
$tempfile: $!\n/);
--- 
-2.5.5
-
diff --git a/HTTP-Tiny-0.068-Croak-on-failed-write-into-a-file.patch 
b/HTTP-Tiny-0.068-Croak-on-failed-write-into-a-file.patch
new file mode 100644
index 0000000..df19992
--- /dev/null
+++ b/HTTP-Tiny-0.068-Croak-on-failed-write-into-a-file.patch
@@ -0,0 +1,36 @@
+From 1ec3e5901a982222e0923a0d68475ed7a40ffb5a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
+Date: Wed, 27 Nov 2013 10:45:39 +0100
+Subject: [PATCH] Croak on failed write into a file
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+The mirror() method saves a document into a file. Any error while
+writing to the file, e.g. no disk space, was ignored. This patch fixes
+it by croaking on such I/O error.
+
+Signed-off-by: Petr Písař <ppi...@redhat.com>
+---
+ lib/HTTP/Tiny.pm | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/lib/HTTP/Tiny.pm b/lib/HTTP/Tiny.pm
+index 6c529bb..1cb6072 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/);
+     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/);
++    };
+     my $response = $self->request('GET', $url, $args);
+     close $fh
+         or Carp::croak(qq/Error: Caught error closing temporary file 
$tempfile: $!\n/);
+-- 
+2.7.4
+
diff --git a/perl-HTTP-Tiny.spec b/perl-HTTP-Tiny.spec
index b3b366f..81568c6 100644
--- a/perl-HTTP-Tiny.spec
+++ b/perl-HTTP-Tiny.spec
@@ -1,5 +1,5 @@
 Name:           perl-HTTP-Tiny
-Version:        0.064
+Version:        0.068
 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.058-Croak-on-failed-write-into-a-file.patch
+Patch0:         HTTP-Tiny-0.068-Croak-on-failed-write-into-a-file.patch
 BuildArch:      noarch
 BuildRequires:  findutils
 BuildRequires:  make
@@ -86,6 +86,9 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Mon Sep 26 2016 Petr Pisar <ppi...@redhat.com> - 0.068-1
+- 0.068 bump
+
 * Fri Sep 02 2016 Petr Pisar <ppi...@redhat.com> - 0.064-1
 - 0.064 bump
 
diff --git a/sources b/sources
index be1cc11..2ddf644 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-4673143f2e400c8c7cc972b37a249e14  HTTP-Tiny-0.064.tar.gz
+605826313a2c097f25e96153826b124d  HTTP-Tiny-0.068.tar.gz
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-HTTP-Tiny.git/commit/?h=master&id=db33e9f856c79d471a09979128432f9ef3b5e08c
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to