Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package speedtest-cli for openSUSE:Factory 
checked in at 2021-04-14 10:10:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/speedtest-cli (Old)
 and      /work/SRC/openSUSE:Factory/.speedtest-cli.new.2401 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "speedtest-cli"

Wed Apr 14 10:10:51 2021 rev:12 rq:884838 version:2.1.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/speedtest-cli/speedtest-cli.changes      
2019-10-23 15:51:08.782713806 +0200
+++ /work/SRC/openSUSE:Factory/.speedtest-cli.new.2401/speedtest-cli.changes    
2021-04-14 10:11:17.301525024 +0200
@@ -1,0 +2,8 @@
+Fri Apr  9 20:44:06 UTC 2021 - Pedro Monreal <pmonr...@suse.com>
+
+- Update to version 2.1.3: [bsc#1184526]
+  * Handle case where ignoreids is empty or contains empty ids
+  * Ensure we catch HTTP errors on upload/download.
+- Fix non-executable-script warning
+
+-------------------------------------------------------------------

Old:
----
  speedtest-cli-2.1.2.tar.gz

New:
----
  speedtest-cli-2.1.3.tar.gz

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

Other differences:
------------------
++++++ speedtest-cli.spec ++++++
--- /var/tmp/diff_new_pack.22pBQ3/_old  2021-04-14 10:11:17.881526003 +0200
+++ /var/tmp/diff_new_pack.22pBQ3/_new  2021-04-14 10:11:17.885526010 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package speedtest-cli
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %define oname   speedtest_cli
 Name:           speedtest-cli
-Version:        2.1.2
+Version:        2.1.3
 Release:        0
 Summary:        Command line interface for testing internet bandwidth
 License:        Apache-2.0
@@ -36,7 +36,8 @@
 speedtest.net
 
 %prep
-%setup -q
+%autosetup
+sed -i -e '/^#!\//, 1d' *.py
 
 %build
 %python3_build

++++++ speedtest-cli-2.1.2.tar.gz -> speedtest-cli-2.1.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/speedtest-cli-2.1.2/speedtest.py 
new/speedtest-cli-2.1.3/speedtest.py
--- old/speedtest-cli-2.1.2/speedtest.py        2019-08-22 16:48:18.000000000 
+0200
+++ new/speedtest-cli-2.1.3/speedtest.py        2021-04-08 15:45:29.000000000 
+0200
@@ -36,7 +36,7 @@
     gzip = None
     GZIP_BASE = object
 
-__version__ = '2.1.2'
+__version__ = '2.1.3'
 
 
 class FakeShutdownEvent(object):
@@ -817,6 +817,8 @@
                 f.close()
         except IOError:
             pass
+        except HTTP_ERRORS:
+            pass
 
 
 class HTTPUploaderData(object):
@@ -882,7 +884,7 @@
         self.request = request
         self.request.data.start = self.starttime = start
         self.size = size
-        self.result = None
+        self.result = 0
         self.timeout = timeout
         self.i = i
 
@@ -917,6 +919,8 @@
                 self.result = 0
         except (IOError, SpeedtestUploadTimeout):
             self.result = sum(self.request.data.total)
+        except HTTP_ERRORS:
+            self.result = 0
 
 
 class SpeedtestResults(object):
@@ -1170,9 +1174,9 @@
             # times = get_attributes_by_tag_name(root, 'times')
             client = get_attributes_by_tag_name(root, 'client')
 
-        ignore_servers = list(
-            map(int, server_config['ignoreids'].split(','))
-        )
+        ignore_servers = [
+            int(i) for i in server_config['ignoreids'].split(',') if i
+        ]
 
         ratio = int(upload['ratio'])
         upload_max = int(upload['maxchunkcount'])

Reply via email to