Hello community, here is the log from the commit of package s-tui for openSUSE:Factory checked in at 2020-06-16 13:46:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/s-tui (Old) and /work/SRC/openSUSE:Factory/.s-tui.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "s-tui" Tue Jun 16 13:46:17 2020 rev:3 rq:814849 version:1.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/s-tui/s-tui.changes 2020-01-22 23:24:03.425706404 +0100 +++ /work/SRC/openSUSE:Factory/.s-tui.new.3606/s-tui.changes 2020-06-16 13:46:55.930363928 +0200 @@ -1,0 +2,7 @@ +Tue Jun 16 07:01:26 UTC 2020 - Martin Hauke <[email protected]> + +- Update to version 1.0.1 + Changes + * Mainly bug fixes and stability. + +------------------------------------------------------------------- Old: ---- s-tui-1.0.0.tar.gz New: ---- s-tui-1.0.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ s-tui.spec ++++++ --- /var/tmp/diff_new_pack.4gbke1/_old 2020-06-16 13:46:56.774366775 +0200 +++ /var/tmp/diff_new_pack.4gbke1/_new 2020-06-16 13:46:56.778366788 +0200 @@ -1,7 +1,7 @@ # # spec file for package s-tui # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # Copyright (c) 2019 Malcolm J Lewis <[email protected]> # # All modifications and additions to the file contributed by third parties @@ -18,7 +18,7 @@ Name: s-tui -Version: 1.0.0 +Version: 1.0.1 Release: 0 Summary: Terminal based CPU stress and monitoring utility License: GPL-2.0-only ++++++ s-tui-1.0.0.tar.gz -> s-tui-1.0.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/s-tui-1.0.0/README.md new/s-tui-1.0.1/README.md --- old/s-tui-1.0.0/README.md 2020-01-21 18:35:39.000000000 +0100 +++ new/s-tui-1.0.1/README.md 2020-06-13 17:21:37.000000000 +0200 @@ -24,7 +24,7 @@ * [More installation methods](#more-installation-methods) * [Ubuntu (18.10 and newer)](#ubuntu-1810-and-newer) * [Ubuntu (18.04, 16.04)](#ubuntu-1804-1604) - * [Arch-Linux, Manjaro](#arch-linux-manjaro) + * [Arch Linux, Manjaro](#arch-linux-manjaro) * [OpenSUSE](#opensuse) * [Options](#options) * [Dependencies](#dependencies) @@ -87,14 +87,15 @@ sudo apt-get install python3-s-tui ``` -### Arch-Linux, Manjaro -`s-tui` is in the arch repository +### Arch Linux, Manjaro +`s-tui` is in the Arch repository: ``` sudo pacman -S s-tui ``` -`s-tui-git` follows the master branch. Maintained by [@MauroMombelli](https://github.com/MauroMombelli) -Install with: +`s-tui-git` follows the master branch, maintained by [@MauroMombelli](https://github.com/MauroMombelli) + +Install it with: `yay -S s-tui-git` ### OpenSUSE @@ -232,4 +233,3 @@ BTC: `1PPhYgecwvAN7utN2EotgTfy2mmLqzF8m3` ETH: `0xc169699A825066f2F07E0b29C4082094b32A3F3e` - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/s-tui-1.0.0/s_tui/about_menu.py new/s-tui-1.0.1/s_tui/about_menu.py --- old/s-tui-1.0.0/s_tui/about_menu.py 2020-01-21 18:35:39.000000000 +0100 +++ new/s-tui-1.0.1/s_tui/about_menu.py 2020-06-13 17:21:37.000000000 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright (C) 2017-2019 Alex Manuskin, Gil Tsuker +# Copyright (C) 2017-2020 Alex Manuskin, Gil Tsuker # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/s-tui-1.0.0/s_tui/help_menu.py new/s-tui-1.0.1/s_tui/help_menu.py --- old/s-tui-1.0.0/s_tui/help_menu.py 2020-01-21 18:35:39.000000000 +0100 +++ new/s-tui-1.0.1/s_tui/help_menu.py 2020-06-13 17:21:37.000000000 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright (C) 2017-2019 Alex Manuskin, Gil Tsuker +# Copyright (C) 2017-2020 Alex Manuskin, Gil Tsuker # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/s-tui-1.0.0/s_tui/helper_functions.py new/s-tui-1.0.1/s_tui/helper_functions.py --- old/s-tui-1.0.0/s_tui/helper_functions.py 2020-01-21 18:35:39.000000000 +0100 +++ new/s-tui-1.0.1/s_tui/helper_functions.py 2020-06-13 17:21:37.000000000 +0200 @@ -21,6 +21,7 @@ import os import logging import platform +import subprocess import re import csv import sys @@ -52,6 +53,20 @@ for line in all_info: if b'model name' in line: return re.sub(b'.*model name.*:', b'', line, 1) + elif platform.system() == "FreeBSD": + cmd = ["sysctl", "-n", "hw.model"] + process = subprocess.Popen( + cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, + ) + str_value = process.stdout.read() + return str_value + elif platform.system() == "Darwin": + cmd = ['sysctl', '-n', 'machdep.cpu.brand_string'] + process = subprocess.Popen( + cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, + ) + str_value = process.stdout.read() + return str_value return platform.processor() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/s-tui-1.0.0/s_tui/s_tui.py new/s-tui-1.0.1/s_tui/s_tui.py --- old/s-tui-1.0.0/s_tui/s_tui.py 2020-01-21 18:35:39.000000000 +0100 +++ new/s-tui-1.0.1/s_tui/s_tui.py 2020-06-13 17:21:37.000000000 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/python -# Copyright (C) 2017-2019 Alex Manuskin, Gil Tsuker +# Copyright (C) 2017-2020 Alex Manuskin, Gil Tsuker # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -89,7 +89,7 @@ VERSION_MESSAGE = \ "s-tui " + __version__ +\ - " - (C) 2017-2019 Alex Manuskin, Gil Tsuker\n\ + " - (C) 2017-2020 Alex Manuskin, Gil Tsuker\n\ Released under GNU GPLv2" ERROR_MESSAGE = "\n\ @@ -249,11 +249,19 @@ source.update() for graph in self.visible_graphs.values(): - graph.update() + try: + graph.update() + except IndexError: + logging.debug("Graph update failed") + pass # update graph summery for summary in self.visible_summaries.values(): - summary.update() + try: + summary.update() + except IndexError: + logging.debug("Summary update failed") + pass # Only update clock if not is stress mode if self.controller.stress_conroller.get_current_mode() != 'Monitor': diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/s-tui-1.0.0/s_tui/sensors_menu.py new/s-tui-1.0.1/s_tui/sensors_menu.py --- old/s-tui-1.0.0/s_tui/sensors_menu.py 2020-01-21 18:35:39.000000000 +0100 +++ new/s-tui-1.0.1/s_tui/sensors_menu.py 2020-06-13 17:21:37.000000000 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright (C) 2017-2019 Alex Manuskin, Gil Tsuker +# Copyright (C) 2017-2020 Alex Manuskin, Gil Tsuker # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/s-tui-1.0.0/s_tui/sources/fan_source.py new/s-tui-1.0.1/s_tui/sources/fan_source.py --- old/s-tui-1.0.0/s_tui/sources/fan_source.py 2020-01-21 18:35:39.000000000 +0100 +++ new/s-tui-1.0.1/s_tui/sources/fan_source.py 2020-06-13 17:21:37.000000000 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright (C) 2017-2019 Alex Manuskin, Maor Veitsman +# Copyright (C) 2017-2020 Alex Manuskin, Maor Veitsman # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/s-tui-1.0.0/s_tui/sources/freq_source.py new/s-tui-1.0.1/s_tui/sources/freq_source.py --- old/s-tui-1.0.0/s_tui/sources/freq_source.py 2020-01-21 18:35:39.000000000 +0100 +++ new/s-tui-1.0.1/s_tui/sources/freq_source.py 2020-06-13 17:21:37.000000000 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright (C) 2017-2019 Alex Manuskin, Maor Veitsman +# Copyright (C) 2017-2020 Alex Manuskin, Maor Veitsman # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/s-tui-1.0.0/s_tui/sources/hook.py new/s-tui-1.0.1/s_tui/sources/hook.py --- old/s-tui-1.0.0/s_tui/sources/hook.py 2020-01-21 18:35:39.000000000 +0100 +++ new/s-tui-1.0.1/s_tui/sources/hook.py 2020-06-13 17:21:37.000000000 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright (C) 2017-2019 Alex Manuskin, Gil Tsuker +# Copyright (C) 2017-2020 Alex Manuskin, Gil Tsuker # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/s-tui-1.0.0/s_tui/sources/hook_script.py new/s-tui-1.0.1/s_tui/sources/hook_script.py --- old/s-tui-1.0.0/s_tui/sources/hook_script.py 2020-01-21 18:35:39.000000000 +0100 +++ new/s-tui-1.0.1/s_tui/sources/hook_script.py 2020-06-13 17:21:37.000000000 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright (C) 2017-2019 Alex Manuskin, Gil Tsuker +# Copyright (C) 2017-2020 Alex Manuskin, Gil Tsuker # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/s-tui-1.0.0/s_tui/sources/rapl_power_source.py new/s-tui-1.0.1/s_tui/sources/rapl_power_source.py --- old/s-tui-1.0.0/s_tui/sources/rapl_power_source.py 2020-01-21 18:35:39.000000000 +0100 +++ new/s-tui-1.0.1/s_tui/sources/rapl_power_source.py 2020-06-13 17:21:37.000000000 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright (C) 2017-2019 Alex Manuskin, Maor Veitsman +# Copyright (C) 2017-2020 Alex Manuskin, Maor Veitsman # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/s-tui-1.0.0/s_tui/sources/rapl_read.py new/s-tui-1.0.1/s_tui/sources/rapl_read.py --- old/s-tui-1.0.0/s_tui/sources/rapl_read.py 2020-01-21 18:35:39.000000000 +0100 +++ new/s-tui-1.0.1/s_tui/sources/rapl_read.py 2020-06-13 17:21:37.000000000 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright (C) 2017-2019 Alex Manuskin, Maor Veitsman +# Copyright (C) 2017-2020 Alex Manuskin, Maor Veitsman # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/s-tui-1.0.0/s_tui/sources/script_hook_loader.py new/s-tui-1.0.1/s_tui/sources/script_hook_loader.py --- old/s-tui-1.0.0/s_tui/sources/script_hook_loader.py 2020-01-21 18:35:39.000000000 +0100 +++ new/s-tui-1.0.1/s_tui/sources/script_hook_loader.py 2020-06-13 17:21:37.000000000 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright (C) 2017-2019 Alex Manuskin, Gil Tsuker +# Copyright (C) 2017-2020 Alex Manuskin, Gil Tsuker # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/s-tui-1.0.0/s_tui/sources/source.py new/s-tui-1.0.1/s_tui/sources/source.py --- old/s-tui-1.0.0/s_tui/sources/source.py 2020-01-21 18:35:39.000000000 +0100 +++ new/s-tui-1.0.1/s_tui/sources/source.py 2020-06-13 17:21:37.000000000 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright (C) 2017-2019 Alex Manuskin, Gil Tsuker +# Copyright (C) 2017-2020 Alex Manuskin, Gil Tsuker # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/s-tui-1.0.0/s_tui/sources/temp_source.py new/s-tui-1.0.1/s_tui/sources/temp_source.py --- old/s-tui-1.0.0/s_tui/sources/temp_source.py 2020-01-21 18:35:39.000000000 +0100 +++ new/s-tui-1.0.1/s_tui/sources/temp_source.py 2020-06-13 17:21:37.000000000 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright (C) 2017-2019 Alex Manuskin, Gil Tzuker, Maor Veitsman +# Copyright (C) 2017-2020 Alex Manuskin, Gil Tzuker, Maor Veitsman # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/s-tui-1.0.0/s_tui/sources/util_source.py new/s-tui-1.0.1/s_tui/sources/util_source.py --- old/s-tui-1.0.0/s_tui/sources/util_source.py 2020-01-21 18:35:39.000000000 +0100 +++ new/s-tui-1.0.1/s_tui/sources/util_source.py 2020-06-13 17:21:37.000000000 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright (C) 2017-2019 Alex Manuskin, Maor Veitsman +# Copyright (C) 2017-2020 Alex Manuskin, Maor Veitsman # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/s-tui-1.0.0/s_tui/stress_menu.py new/s-tui-1.0.1/s_tui/stress_menu.py --- old/s-tui-1.0.0/s_tui/stress_menu.py 2020-01-21 18:35:39.000000000 +0100 +++ new/s-tui-1.0.1/s_tui/stress_menu.py 2020-06-13 17:21:37.000000000 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright (C) 2017-2019 Alex Manuskin, Gil Tsuker +# Copyright (C) 2017-2020 Alex Manuskin, Gil Tsuker # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/s-tui-1.0.0/s_tui/sturwid/bar_graph_vector.py new/s-tui-1.0.1/s_tui/sturwid/bar_graph_vector.py --- old/s-tui-1.0.0/s_tui/sturwid/bar_graph_vector.py 2020-01-21 18:35:39.000000000 +0100 +++ new/s-tui-1.0.1/s_tui/sturwid/bar_graph_vector.py 2020-06-13 17:21:37.000000000 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright (C) 2017-2019 Alex Manuskin, Gil Tsuker +# Copyright (C) 2017-2020 Alex Manuskin, Gil Tsuker # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/s-tui-1.0.0/s_tui/sturwid/complex_bar_graph.py new/s-tui-1.0.1/s_tui/sturwid/complex_bar_graph.py --- old/s-tui-1.0.0/s_tui/sturwid/complex_bar_graph.py 2020-01-21 18:35:39.000000000 +0100 +++ new/s-tui-1.0.1/s_tui/sturwid/complex_bar_graph.py 2020-06-13 17:21:37.000000000 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright (C) 2017-2019 Alex Manuskin, Gil Tsuker +# Copyright (C) 2017-2020 Alex Manuskin, Gil Tsuker # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/s-tui-1.0.0/s_tui/sturwid/summary_text_list.py new/s-tui-1.0.1/s_tui/sturwid/summary_text_list.py --- old/s-tui-1.0.0/s_tui/sturwid/summary_text_list.py 2020-01-21 18:35:39.000000000 +0100 +++ new/s-tui-1.0.1/s_tui/sturwid/summary_text_list.py 2020-06-13 17:21:37.000000000 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright (C) 2017-2019 Alex Manuskin, Gil Tsuker +# Copyright (C) 2017-2020 Alex Manuskin, Gil Tsuker # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/s-tui-1.0.0/s_tui/sturwid/ui_elements.py new/s-tui-1.0.1/s_tui/sturwid/ui_elements.py --- old/s-tui-1.0.0/s_tui/sturwid/ui_elements.py 2020-01-21 18:35:39.000000000 +0100 +++ new/s-tui-1.0.1/s_tui/sturwid/ui_elements.py 2020-06-13 17:21:37.000000000 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright (C) 2017-2019 Alex Manuskin, Gil Tsuker +# Copyright (C) 2017-2020 Alex Manuskin, Gil Tsuker # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -92,9 +92,9 @@ return super(ViListBox, self).keypress(size, key) -def radio_button(g, l, fn): +def radio_button(group, label, fn): """ Inheriting radio button of urwid """ - w = urwid.RadioButton(g, l, False, on_state_change=fn) + w = urwid.RadioButton(group, label, False, on_state_change=fn) w = urwid.AttrWrap(w, 'button normal', 'button select') return w
