Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package perl-HTTP-Tinyish for 
openSUSE:Factory checked in at 2026-05-18 17:48:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-HTTP-Tinyish (Old)
 and      /work/SRC/openSUSE:Factory/.perl-HTTP-Tinyish.new.1966 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-HTTP-Tinyish"

Mon May 18 17:48:01 2026 rev:4 rq:1353757 version:0.200.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-HTTP-Tinyish/perl-HTTP-Tinyish.changes      
2024-04-07 22:13:40.075438469 +0200
+++ 
/work/SRC/openSUSE:Factory/.perl-HTTP-Tinyish.new.1966/perl-HTTP-Tinyish.changes
    2026-05-18 17:48:49.218294880 +0200
@@ -1,0 +2,12 @@
+Tue May  5 07:30:55 UTC 2026 - Tina Müller <[email protected]>
+
+- updated to 0.200.0 (0.20)
+   see /usr/share/doc/packages/perl-HTTP-Tinyish/Changes
+
+  0.20  2026-05-04 09:50:45 PDT
+          - Fix mirror() in Curl and Wget backends to not create a local file 
on
+            failed HTTP requests, matching HTTP::Tiny's behavior. Fixes #27
+          - Fix Wget mirror() to properly return HTTP error status codes (e.g. 
404)
+            instead of converting them to 599 internal errors
+
+-------------------------------------------------------------------

Old:
----
  HTTP-Tinyish-0.19.tar.gz

New:
----
  HTTP-Tinyish-0.20.tar.gz
  README.md
  _scmsync.obsinfo
  build.specials.obscpio

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-HTTP-Tinyish.spec ++++++
--- /var/tmp/diff_new_pack.yRibpX/_old  2026-05-18 17:48:49.742316534 +0200
+++ /var/tmp/diff_new_pack.yRibpX/_new  2026-05-18 17:48:49.742316534 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-HTTP-Tinyish
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,15 +18,16 @@
 
 %define cpan_name HTTP-Tinyish
 Name:           perl-HTTP-Tinyish
-Version:        0.190.0
+Version:        0.200.0
 Release:        0
-# 0.19 -> normalize -> 0.190.0
-%define cpan_version 0.19
+# 0.20 -> normalize -> 0.200.0
+%define cpan_version 0.20
 License:        Artistic-1.0 OR GPL-1.0-or-later
 Summary:        HTTP::Tiny compatible HTTP client wrappers
 URL:            https://metacpan.org/release/%{cpan_name}
 Source0:        
https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/%{cpan_name}-%{cpan_version}.tar.gz
 Source1:        cpanspec.yml
+Source100:      README.md
 BuildArch:      noarch
 BuildRequires:  perl
 BuildRequires:  perl-macros
@@ -59,7 +60,7 @@
 without an HTTPS support in built-in HTTP library.
 
 %prep
-%autosetup  -n %{cpan_name}-%{cpan_version}
+%autosetup -n %{cpan_name}-%{cpan_version} -p1
 
 %build
 perl Makefile.PL INSTALLDIRS=vendor

++++++ HTTP-Tinyish-0.19.tar.gz -> HTTP-Tinyish-0.20.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTTP-Tinyish-0.19/Changes 
new/HTTP-Tinyish-0.20/Changes
--- old/HTTP-Tinyish-0.19/Changes       2024-03-08 23:30:07.000000000 +0100
+++ new/HTTP-Tinyish-0.20/Changes       2026-05-04 18:50:46.000000000 +0200
@@ -1,5 +1,11 @@
 Revision history for HTTP-Tinyish
 
+0.20  2026-05-04 09:50:45 PDT
+        - Fix mirror() in Curl and Wget backends to not create a local file on
+          failed HTTP requests, matching HTTP::Tiny's behavior. Fixes #27
+        - Fix Wget mirror() to properly return HTTP error status codes (e.g. 
404)
+          instead of converting them to 599 internal errors
+
 0.19  2024-03-08 14:30:05 PST
         - Specify :raw for IPC::Run3 to force binary on Windows #24
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTTP-Tinyish-0.19/META.json 
new/HTTP-Tinyish-0.20/META.json
--- old/HTTP-Tinyish-0.19/META.json     2024-03-08 23:30:07.000000000 +0100
+++ new/HTTP-Tinyish-0.20/META.json     2026-05-04 18:50:46.000000000 +0200
@@ -4,7 +4,7 @@
       "Tatsuhiko Miyagawa"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Dist::Milla version v1.0.22, Dist::Zilla version 6.025, 
CPAN::Meta::Converter version 2.150010",
+   "generated_by" : "Dist::Milla version v1.0.22, Dist::Zilla version 6.025, 
CPAN::Meta::Converter version 2.150013",
    "license" : [
       "perl_5"
    ],
@@ -71,7 +71,7 @@
          "web" : "https://github.com/miyagawa/HTTP-Tinyish";
       }
    },
-   "version" : "0.19",
+   "version" : "0.20",
    "x_contributors" : [
       "Nicolas R <[email protected]>",
       "Patrick B\u00f6ker <[email protected]>",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTTP-Tinyish-0.19/META.yml 
new/HTTP-Tinyish-0.20/META.yml
--- old/HTTP-Tinyish-0.19/META.yml      2024-03-08 23:30:07.000000000 +0100
+++ new/HTTP-Tinyish-0.20/META.yml      2026-05-04 18:50:46.000000000 +0200
@@ -8,7 +8,7 @@
 configure_requires:
   ExtUtils::MakeMaker: '0'
 dynamic_config: 0
-generated_by: 'Dist::Milla version v1.0.22, Dist::Zilla version 6.025, 
CPAN::Meta::Converter version 2.150010'
+generated_by: 'Dist::Milla version v1.0.22, Dist::Zilla version 6.025, 
CPAN::Meta::Converter version 2.150013'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -32,7 +32,7 @@
   bugtracker: https://github.com/miyagawa/HTTP-Tinyish/issues
   homepage: https://github.com/miyagawa/HTTP-Tinyish
   repository: https://github.com/miyagawa/HTTP-Tinyish.git
-version: '0.19'
+version: '0.20'
 x_contributors:
   - 'Nicolas R <[email protected]>'
   - 'Patrick Böker <[email protected]>'
@@ -42,6 +42,6 @@
   - 'Tatsuhiko Miyagawa <[email protected]>'
   - 'Tatsuhiko Miyagawa <[email protected]>'
 x_generated_by_perl: v5.34.1
-x_serialization_backend: 'YAML::Tiny version 1.73'
+x_serialization_backend: 'YAML::Tiny version 1.76'
 x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later'
 x_static_install: 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTTP-Tinyish-0.19/Makefile.PL 
new/HTTP-Tinyish-0.20/Makefile.PL
--- old/HTTP-Tinyish-0.19/Makefile.PL   2024-03-08 23:30:07.000000000 +0100
+++ new/HTTP-Tinyish-0.20/Makefile.PL   2026-05-04 18:50:46.000000000 +0200
@@ -26,7 +26,7 @@
     "JSON::PP" => 0,
     "Test::More" => "0.96"
   },
-  "VERSION" => "0.19",
+  "VERSION" => "0.20",
   "test" => {
     "TESTS" => "t/*.t"
   }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTTP-Tinyish-0.19/lib/HTTP/Tinyish/Curl.pm 
new/HTTP-Tinyish-0.20/lib/HTTP/Tinyish/Curl.pm
--- old/HTTP-Tinyish-0.19/lib/HTTP/Tinyish/Curl.pm      2024-03-08 
23:30:07.000000000 +0100
+++ new/HTTP-Tinyish-0.20/lib/HTTP/Tinyish/Curl.pm      2026-05-04 
18:50:46.000000000 +0200
@@ -79,6 +79,7 @@
     $opts ||= {};
 
     my(undef, $temp) = File::Temp::tempfile(UNLINK => 1);
+    my $tempfile = $file . int(rand(2**31));
 
     my($output, $error);
     eval {
@@ -86,7 +87,7 @@
             $curl,
             $self->build_options($url, $opts),
             '-z', $file,
-            '-o', $file,
+            '-o', $tempfile,
             '--dump-header', $temp,
             '--remote-time',
             $url,
@@ -98,11 +99,18 @@
     };
 
     if ($@ or $?) {
+        unlink $tempfile;
         return $self->internal_error($url, $@ || $error);
     }
 
     my $res = { url => $url, content => $output };
     $self->parse_http_header( _slurp($temp), $res );
+
+    if ($res->{status} eq '200') {
+        rename $tempfile, $file
+            or die "Error replacing $file with $tempfile: $!\n";
+    }
+    unlink $tempfile;
     $res;
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTTP-Tinyish-0.19/lib/HTTP/Tinyish/Wget.pm 
new/HTTP-Tinyish-0.20/lib/HTTP/Tinyish/Wget.pm
--- old/HTTP-Tinyish-0.19/lib/HTTP/Tinyish/Wget.pm      2024-03-08 
23:30:07.000000000 +0100
+++ new/HTTP-Tinyish-0.20/lib/HTTP/Tinyish/Wget.pm      2026-05-04 
18:50:46.000000000 +0200
@@ -37,6 +37,8 @@
             $supports{http} = 1;
         } elsif ($err && $err =~ /Invalid host/) {
             $supports{http} = $supports{https} = 1;
+        } elsif ($err && $err =~ /wget: unrecognized option '(.*?)'/) {
+            die "This wget ($wget) is too old and doesn't support $1";
         }
 
         (undef, $err) = _run_wget('--method', 'GET', 'http://');
@@ -92,6 +94,8 @@
     my($self, $url, $file, $opts) = @_;
     $opts ||= {};
 
+    my $tempfile = $file . int(rand(2**31));
+
     # This doesn't send If-Modified-Since because -O and -N are mutually 
exclusive :(
     my($stdout, $stderr);
     eval {
@@ -99,7 +103,7 @@
             $wget,
             $self->build_options("GET", $url, $opts),
             $url,
-            '-O', $file,
+            '-O', $tempfile,
         ], \undef, \$stdout, \$stderr,
         {
             binmode_stdout => ":raw",
@@ -107,7 +111,8 @@
         };
     };
 
-    if ($@ or $?) {
+    if ($@ or $? && ($? >> 8) <= 5) {
+        unlink $tempfile;
         return $self->internal_error($url, $@ || $stderr);
     }
 
@@ -115,6 +120,12 @@
 
     my $res = { url => $url, content => $stdout };
     $self->parse_http_header($stderr, $res);
+
+    if ($res->{status} eq '200') {
+        rename $tempfile, $file
+            or die "Error replacing $file with $tempfile: $!\n";
+    }
+    unlink $tempfile;
     $res;
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTTP-Tinyish-0.19/lib/HTTP/Tinyish.pm 
new/HTTP-Tinyish-0.20/lib/HTTP/Tinyish.pm
--- old/HTTP-Tinyish-0.19/lib/HTTP/Tinyish.pm   2024-03-08 23:30:07.000000000 
+0100
+++ new/HTTP-Tinyish-0.20/lib/HTTP/Tinyish.pm   2026-05-04 18:50:46.000000000 
+0200
@@ -3,7 +3,7 @@
 use warnings;
 use Carp ();
 
-our $VERSION = '0.19';
+our $VERSION = '0.20';
 
 our $PreferredBackend; # for tests
 our @Backends = map "HTTP::Tinyish::$_", qw( LWP HTTPTiny Curl Wget );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTTP-Tinyish-0.19/t/tinyish.t 
new/HTTP-Tinyish-0.20/t/tinyish.t
--- old/HTTP-Tinyish-0.19/t/tinyish.t   2024-03-08 23:30:07.000000000 +0100
+++ new/HTTP-Tinyish-0.20/t/tinyish.t   2026-05-04 18:50:46.000000000 +0200
@@ -115,6 +115,15 @@
     $res = HTTP::Tinyish->new->mirror("http://example.invalid";, $fn);
     is $res->{status}, 599;
     ok !$res->{success};
+    ok !-e $fn, "$backend: no file created on network error";
+
+    {
+        my $fn = tempdir(CLEANUP => 1) . "/error.html";
+        $res = HTTP::Tinyish->new->mirror("http://httpbin.org/status/404";, 
$fn);
+        is $res->{status}, 404;
+        ok !$res->{success};
+        ok !-e $fn, "$backend: no file created on HTTP 404";
+    }
 
     $res = HTTP::Tinyish->new(agent => 
"Menlo/1")->get("http://httpbin.org/user-agent";);
     is_deeply decode_json($res->{content}), { 'user-agent' => "Menlo/1" };

++++++ README.md ++++++

## Build Results

Current state of perl in openSUSE:Factory is

![Factory build 
results](https://br.opensuse.org/status/openSUSE:Factory/perl-HTTP-Tinyish/standard)

The current state of perl in the devel project build (devel:languages:perl)

![Devel project build 
results](https://br.opensuse.org/status/devel:languages:perl/perl-HTTP-Tinyish)



++++++ _scmsync.obsinfo ++++++
mtime: 1777966255
commit: 52280e21434619e3dcd00ff1220f3ddb45e5829df0d5e3186ba1ce30db76f7dc
url: https://src.opensuse.org/perl/perl-HTTP-Tinyish
revision: 52280e21434619e3dcd00ff1220f3ddb45e5829df0d5e3186ba1ce30db76f7dc
projectscmsync: https://src.opensuse.org/perl/_ObsPrj

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2026-05-05 09:30:55.000000000 +0200
@@ -0,0 +1 @@
+.osc

Reply via email to