Hello community, here is the log from the commit of package 2ping for openSUSE:Factory checked in at 2018-08-12 20:56:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/2ping (Old) and /work/SRC/openSUSE:Factory/.2ping.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "2ping" Sun Aug 12 20:56:22 2018 rev:6 rq:628748 version:4.1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/2ping/2ping.changes 2018-05-29 16:50:53.738863216 +0200 +++ /work/SRC/openSUSE:Factory/.2ping.new/2ping.changes 2018-08-12 20:56:26.221596982 +0200 @@ -1,0 +2,7 @@ +Sat Aug 11 01:03:42 UTC 2018 - r...@fthiessen.de + +- Update to version 4.1.2 + * Fix UTF-8 tests when run with invalid locale. + * Fix cleanup on non-encrypted sessions. + +------------------------------------------------------------------- Old: ---- 2ping-4.1.tar.gz 2ping-4.1.tar.gz.asc New: ---- 2ping-4.1.2.tar.gz 2ping-4.1.2.tar.gz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ 2ping.spec ++++++ --- /var/tmp/diff_new_pack.pncMC0/_old 2018-08-12 20:56:26.601597755 +0200 +++ /var/tmp/diff_new_pack.pncMC0/_new 2018-08-12 20:56:26.601597755 +0200 @@ -17,7 +17,7 @@ Name: 2ping -Version: 4.1 +Version: 4.1.2 Release: 0 Summary: Bi-directional ping utility License: GPL-2.0-or-later @@ -55,11 +55,12 @@ python3 setup.py test %files -%doc ChangeLog COPYING README doc/2ping-protocol-examples.py doc/2ping.md doc/2ping-protocol.md +%license COPYING +%doc ChangeLog README doc/2ping-protocol-examples.py doc/2ping.md doc/2ping-protocol.md %{_bindir}/2ping %{_bindir}/2ping6 -%{_mandir}/man1/2ping.1%{ext_man} -%{_mandir}/man1/2ping6.1%{ext_man} +%{_mandir}/man1/2ping.1%{?ext_man} +%{_mandir}/man1/2ping6.1%{?ext_man} %{python3_sitelib}/* %changelog ++++++ 2ping-4.1.tar.gz -> 2ping-4.1.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/2ping-4.1/2ping.spec new/2ping-4.1.2/2ping.spec --- old/2ping-4.1/2ping.spec 2017-08-06 04:04:13.000000000 +0200 +++ new/2ping-4.1.2/2ping.spec 2018-08-10 05:29:17.000000000 +0200 @@ -7,23 +7,25 @@ Source0: https://www.finnie.org/software/%{name}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel +BuildRequires: python3-setuptools +%{?python_provide:%python_provide python3-%{name}} %description -2ping is a bi-directional ping utility. It uses 3-way pings (akin to TCP SYN, +2ping is a bi-directional ping utility. It uses 3-way pings (akin to TCP SYN, SYN/ACK, ACK) and after-the-fact state comparison between a 2ping listener and a 2ping client to determine which direction packet loss occurs. %prep -%autosetup -n 2ping-%{version} +%setup -n %{name}-%{version} %build %py3_build %install %py3_install -install -d -m 0755 $RPM_BUILD_ROOT/usr/share/man/man1 -install -m 0644 doc/2ping.1 $RPM_BUILD_ROOT/usr/share/man/man1/2ping.1 -install -m 0644 doc/2ping.1 $RPM_BUILD_ROOT/usr/share/man/man1/2ping6.1 +install -d -m 0755 %{buildroot}/usr/share/man/man1 +install -m 0644 doc/2ping.1 %{buildroot}/usr/share/man/man1/2ping.1 +install -m 0644 doc/2ping.1 %{buildroot}/usr/share/man/man1/2ping6.1 %check %{__python3} setup.py test diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/2ping-4.1/ChangeLog new/2ping-4.1.2/ChangeLog --- old/2ping-4.1/ChangeLog 2017-08-06 04:04:13.000000000 +0200 +++ new/2ping-4.1.2/ChangeLog 2018-08-10 05:29:17.000000000 +0200 @@ -1,3 +1,7 @@ +2ping 4.1.2 (2018-08-09) + * Fix UTF-8 tests when run with invalid locale (Debian Bug#897498) + * Fix cleanup on non-encrypted sessions (GitHub rfinnie/2ping#5) + 2ping 4.1 (2017-08-06) * Fixed --fuzz CRC function. * Added --encrypt option for shared-secret encrypted packets. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/2ping-4.1/tests/test_cli.py new/2ping-4.1.2/tests/test_cli.py --- old/2ping-4.1/tests/test_cli.py 2017-08-06 04:04:13.000000000 +0200 +++ new/2ping-4.1.2/tests/test_cli.py 2018-08-10 05:29:17.000000000 +0200 @@ -6,6 +6,7 @@ import time import signal import random +import locale from twoping import monotonic_clock try: @@ -87,8 +88,7 @@ @unittest.skipUnless( ( - os.environ.get('LANG') and - ('UTF-8' in os.environ.get('LANG')) + locale.getlocale()[1] == 'UTF-8' ), 'UTF-8 environment required' ) def test_notice_utf8(self): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/2ping-4.1/twoping/cli.py new/2ping-4.1.2/twoping/cli.py --- old/2ping-4.1/twoping/cli.py 2017-08-06 04:04:13.000000000 +0200 +++ new/2ping-4.1.2/twoping/cli.py 2018-08-10 05:29:17.000000000 +0200 @@ -1046,6 +1046,8 @@ del(sock_class.courtesy_messages[peer_tuple]) self.print_debug('Cleanup: Removed courtesy_messages empty {}'.format(repr(peer_tuple))) for peer_tuple in tuple(sock_class.encrypted_sessions.keys()): + if sock_class.encrypted_sessions[peer_tuple] is None: + continue if now > (sock_class.encrypted_sessions[peer_tuple][0] + 600.0): del(sock_class.encrypted_sessions[peer_tuple]) self.print_debug('Cleanup: Removed encrypted_sessions {}'.format(repr(peer_tuple)))