update iotop

This commit is contained in:
eulerstorage 2020-01-10 10:39:38 +08:00
parent b84d172048
commit 2d0ce6ea88
5 changed files with 9 additions and 38 deletions

View File

@ -1,21 +0,0 @@
diff -up iotop-0.6/iotop/ui.py.noendcurses iotop-0.6/iotop/ui.py
--- iotop-0.6/iotop/ui.py.noendcurses 2014-12-03 17:50:38.941430261 +0100
+++ iotop-0.6/iotop/ui.py 2014-12-03 17:51:40.108064465 +0100
@@ -520,6 +525,17 @@ Please do not file bugs on iotop about t
sys.exit(1)
else:
raise
+ except curses.error as e:
+ stre = str(e)
+ if stre.find('ERR')>=0 and (
+ stre.find('nocbreak()')>=0 or stre.find('endwin()')>=0
+ ):
+ pass
+ # endwin and nocbreak can cause error (and raise hard to catch
+ # exception) if iotop was running in the terminal and that
+ # terminal got closed while iotop was still running
+ else:
+ raise
#
# Profiling

View File

@ -1,12 +0,0 @@
diff -up iotop-0.6/iotop/ui.py.batchprintutf8 iotop-0.6/iotop/ui.py
--- iotop-0.6/iotop/ui.py.batchprintutf8 2016-11-14 11:21:23.690185257 +0100
+++ iotop-0.6/iotop/ui.py 2016-11-14 11:23:26.511040007 +0100
@@ -444,7 +444,7 @@ class IOTopUI(object):
if self.options.quiet <= int(first_time):
print(''.join(titles))
for l in lines:
- print(l)
+ print(l.encode('utf-8'))
sys.stdout.flush()
else:
self.win.erase()

View File

@ -1,6 +1,6 @@
Name: iotop
Version: 0.6
Release: 19
Release: 20
Summary: Simple top-like I/O monitor
License: GPLv2+
URL: http://guichaz.free.fr/iotop/
@ -10,10 +10,8 @@ Source0: http://guichaz.free.fr/iotop/files/%{name}-%{version}.tar.bz2
BuildArch: noarch
BuildRequires: python3-devel git
Patch0000: 0000-iotop-0.6-noendcurses.patch
Patch0001: 0001-iotop-0.6-python3.patch
Patch0002: 0002-iotop-python3build.patch
Patch0003: 0003-iotop-0.3.2-batchprintutf8.patch
Patch0000: 0000-iotop-0.6-python3.patch
Patch0001: 0001-iotop-python3build.patch
Patch6000: 6000-iotop-0.6-splitline.patch
Patch6001: 6001-iotop-0.3.2-ppcprio.patch
Patch6002: 6002-iotop-0.6-aarch64prio.patch
@ -54,6 +52,12 @@ This contains man files for the using of iotop
%{_mandir}/man8/iotop.*
%changelog
* Fri Jan 10 2020 sunshihao <sunshihao@huawei.com> - 0.6-20
- Type:enhancemnet
- ID:NA
- SUG:NA
- DESC:update iotop
* Sat Aug 31 2019 Miaohe Lin <linmiaohe@huawei.com> - 0.6-19
- Type:enhancemnet
- ID:NA