Hello community, here is the log from the commit of package dstat for openSUSE:Factory checked in at 2019-06-13 23:03:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/dstat (Old) and /work/SRC/openSUSE:Factory/.dstat.new.4811 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "dstat" Thu Jun 13 23:03:14 2019 rev:8 rq:709532 version:0.7.4 Changes: -------- --- /work/SRC/openSUSE:Factory/dstat/dstat.changes 2019-05-24 11:31:44.465400964 +0200 +++ /work/SRC/openSUSE:Factory/.dstat.new.4811/dstat.changes 2019-06-13 23:03:15.591397941 +0200 @@ -1,0 +2,6 @@ +Wed Jun 12 15:38:34 UTC 2019 - Guillaume GARDET <guillaume.gar...@opensuse.org> + +- Add patch to fix python deprecation warning (boo#1136279): + * fix_boo_1136279.patch + +------------------------------------------------------------------- New: ---- fix_boo_1136279.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dstat.spec ++++++ --- /var/tmp/diff_new_pack.6YufXR/_old 2019-06-13 23:03:16.043397549 +0200 +++ /var/tmp/diff_new_pack.6YufXR/_new 2019-06-13 23:03:16.047397546 +0200 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -25,6 +25,7 @@ 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 BuildRequires: make Requires: python3 BuildArch: noarch @@ -53,6 +54,7 @@ %setup -q # repalce env by python sed -i 's/#!\/usr\/bin\/env python/#!\/usr\/bin\/python3/' dstat +%patch1 -p1 %build ++++++ fix_boo_1136279.patch ++++++ --- dstat-0.7.4.orig/dstat 2019-01-17 02:22:32.000000000 +0100 +++ dstat-0.7.4/dstat 2019-06-12 17:44:40.067840479 +0200 @@ -19,7 +19,7 @@ from __future__ import absolute_import, division, generators, print_function __metaclass__ = type -import collections +import collections.abc import fnmatch import getopt import getpass @@ -512,7 +512,7 @@ class dstat: scale = self.scales[i] else: scale = self.scale - if isinstance(self.val[name], collections.Sequence) and not isinstance(self.val[name], six.string_types): + if isinstance(self.val[name], collections.abc.Sequence) and not isinstance(self.val[name], six.string_types): line = line + cprintlist(self.val[name], ctype, self.width, scale) sep = theme['frame'] + char['colon'] if i + 1 != len(self.vars):