Hello community, here is the log from the commit of package dstat for openSUSE:Factory checked in at 2020-09-29 19:04:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/dstat (Old) and /work/SRC/openSUSE:Factory/.dstat.new.4249 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "dstat" Tue Sep 29 19:04:31 2020 rev:10 rq:838410 version:0.7.4 Changes: -------- --- /work/SRC/openSUSE:Factory/dstat/dstat.changes 2019-07-04 15:43:05.574092469 +0200 +++ /work/SRC/openSUSE:Factory/.dstat.new.4249/dstat.changes 2020-09-29 19:04:35.717976978 +0200 @@ -1,0 +2,8 @@ +Mon Sep 28 16:35:10 UTC 2020 - Dario Faggioli <dfaggioli@suse.com> + +- Add loop-should-be-integer.patch + * Fixes bug boo#1173004 + * Is a port of 62ea609fa3026 from https://github.com/scottchiefbaker/dool + where the upstream development of dstat is currently happening + +------------------------------------------------------------------- New: ---- loop-should-be-integer.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dstat.spec ++++++ --- /var/tmp/diff_new_pack.oC5zSf/_old 2020-09-29 19:04:36.229977600 +0200 +++ /var/tmp/diff_new_pack.oC5zSf/_new 2020-09-29 19:04:36.229977600 +0200 @@ -1,7 +1,7 @@ # # spec file for package dstat # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,12 +22,14 @@ Summary: Versatile vmstat, iostat and ifstat Replacement License: GPL-2.0-only Group: System/Monitoring -Url: http://dag.wieers.com/home-made/dstat/ +URL: http://dag.wieers.com/home-made/dstat/ Source: https://github.com/dagwieers/dstat/archive/v%{version}.tar.gz Source1: dstat.desktop Patch1: fix_boo_1136279.patch # PATCH-FIX-OPENSUSE - boo#1138417 Patch2: 0001-Use-python3-compatible-way-of-checking-instance-type.patch +# PATCH-FIX-OPENSUSE - boo#1173004 +Patch3: loop-should-be-integer.patch BuildRequires: make Requires: python3 BuildArch: noarch @@ -58,6 +60,7 @@ sed -i 's/#!\/usr\/bin\/env python/#!\/usr\/bin\/python3/' dstat %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build ++++++ loop-should-be-integer.patch ++++++ commit 62ea609fa30261c26232026efa1c7b1950fb568d From: Scott Baker <scott.baker@directlink.coop> Date: Thu Jun 13 18:32:02 2019 -0700 Loop should be an integer --- dstat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dstat b/dstat index 9359965..f6fcecf 100755 --- a/dstat +++ b/dstat @@ -2697,7 +2697,7 @@ def perform(update): starttime = time.time() - loop = (update - 1 + op.delay) / op.delay + loop = int((update - 1 + op.delay) / op.delay) step = ((update - 1) % op.delay) + 1 ### Get current time (may be different from schedule) for debugging