From fc5c54536bdde1a90ba708e2511b8946bead0fa0 Mon Sep 17 00:00:00 2001 From: drago01 Date: Dec 28 2007 13:43:30 +0000 Subject: fix bug 400071 --- diff --git a/iotop.spec b/iotop.spec index 6d65b9b..635a0c8 100644 --- a/iotop.spec +++ b/iotop.spec @@ -1,18 +1,20 @@ Name: iotop Version: 0.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Top like utility for I/O Group: Applications/System License: GPLv2 URL: http://guichaz.free.fr/misc/#iotop Source0: http://guichaz.free.fr/misc/%{name}.py +Patch0: xterm-color-fix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: python %prep +%patch0 -p0 -b .xterm-color %build @@ -39,6 +41,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Fri Dec 28 2007 Adel Gadllah 0.1-2 +- Fix traceback on xterm-color RH #400071 + * Sun Nov 3 2007 Adel Gadllah 0.1-1 - Fix version diff --git a/xterm-color-fix.patch b/xterm-color-fix.patch new file mode 100644 index 0000000..418d3bc --- /dev/null +++ b/xterm-color-fix.patch @@ -0,0 +1,18 @@ +--- iotop.py.orign 2007-11-03 18:46:19.000000000 +0100 ++++ iotop.py 2007-12-28 14:37:05.000000000 +0100 +@@ -440,9 +440,12 @@ + if not self.options.batch: + self.win = win + self.resize() +- curses.use_default_colors() +- curses.start_color() +- curses.curs_set(0) ++ try: ++ curses.use_default_colors() ++ curses.start_color() ++ curses.curs_set(0) ++ except: ++ pass + + def resize(self): + self.height, self.width = self.win.getmaxyx()