Hello community, here is the log from the commit of package perl-Mojo-RabbitMQ-Client for openSUSE:Factory checked in at 2019-08-13 13:18:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Mojo-RabbitMQ-Client (Old) and /work/SRC/openSUSE:Factory/.perl-Mojo-RabbitMQ-Client.new.9556 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Mojo-RabbitMQ-Client" Tue Aug 13 13:18:55 2019 rev:10 rq:722192 version:0.2.3 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Mojo-RabbitMQ-Client/perl-Mojo-RabbitMQ-Client.changes 2019-07-26 12:44:44.773827997 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Mojo-RabbitMQ-Client.new.9556/perl-Mojo-RabbitMQ-Client.changes 2019-08-13 13:20:11.221435396 +0200 @@ -1,0 +2,6 @@ +Fri Aug 9 13:51:32 UTC 2019 - Oliver Kurz <ok...@suse.com> + +- Add 0001-Prevent-warning-about-undefined-object-on-closed-cha.patch + Prevent warning about undefined object on closed channels + +------------------------------------------------------------------- New: ---- 0001-Prevent-warning-about-undefined-object-on-closed-cha.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Mojo-RabbitMQ-Client.spec ++++++ --- /var/tmp/diff_new_pack.Fd6w9y/_old 2019-08-13 13:20:11.653435282 +0200 +++ /var/tmp/diff_new_pack.Fd6w9y/_new 2019-08-13 13:20:11.657435281 +0200 @@ -26,6 +26,8 @@ Url: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/S/SE/SEBAPOD/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml +# https://github.com/inway/mojo-rabbitmq-client/pull/36 +Patch0: 0001-Prevent-warning-about-undefined-object-on-closed-cha.patch BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl @@ -53,6 +55,7 @@ %prep %setup -q -n %{cpan_name}-%{version} +%patch0 -p1 %build perl Build.PL --installdirs=vendor ++++++ 0001-Prevent-warning-about-undefined-object-on-closed-cha.patch ++++++ >From d7cfa01b0f7a36acaa365dccaf0be32ab6ec8d5f Mon Sep 17 00:00:00 2001 From: Oliver Kurz <ok...@suse.de> Date: Fri, 9 Aug 2019 15:23:05 +0200 Subject: [PATCH] Prevent warning about undefined object on closed channels This prevents warnings like ``` (in cleanup) Can't call method "_handle" on an undefined value at /usr/lib/perl5/vendor_perl/5.18.2/Mojo/RabbitMQ/Client.pm line 354. ``` as reported in https://github.com/inway/mojo-rabbitmq-client/issues/30 --- lib/Mojo/RabbitMQ/Client.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Mojo/RabbitMQ/Client.pm b/lib/Mojo/RabbitMQ/Client.pm index 03d61b1..cc0723a 100644 --- a/lib/Mojo/RabbitMQ/Client.pm +++ b/lib/Mojo/RabbitMQ/Client.pm @@ -351,9 +351,9 @@ sub _connect { # Connection established $stream->on(timeout => sub { $self->_error($id, 'Inactivity timeout') }); - $stream->on(close => sub { $self->_handle($id, 1) }); + $stream->on(close => sub { $self && $self->_handle($id, 1) }); $stream->on(error => sub { $self && $self->_error($id, pop) }); - $stream->on(read => sub { $self->_read($id, pop) }); + $stream->on(read => sub { $self && $self->_read($id, pop) }); $cb->(); } ); -- 2.16.4