rpms/iotop/devel xterm-color-fix.patch,NONE,1.1 iotop.spec,1.1,1.2

Adel Gadllah (drago01) fedora-extras-commits at redhat.com
Fri Dec 28 13:44:12 UTC 2007


Author: drago01

Update of /cvs/pkgs/rpms/iotop/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28247

Modified Files:
	iotop.spec 
Added Files:
	xterm-color-fix.patch 
Log Message:
fix bug 400071

xterm-color-fix.patch:

--- NEW FILE xterm-color-fix.patch ---
--- 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()


Index: iotop.spec
===================================================================
RCS file: /cvs/pkgs/rpms/iotop/devel/iotop.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- iotop.spec	3 Nov 2007 17:46:19 -0000	1.1
+++ iotop.spec	28 Dec 2007 13:43:30 -0000	1.2
@@ -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 @@
 
 
 %changelog
+* Fri Dec 28 2007 Adel Gadllah <adel.gadllah at gmail.com> 0.1-2
+- Fix traceback on xterm-color RH #400071
+
 * Sun Nov 3 2007 Adel Gadllah <adel.gadllah at gmail.com> 0.1-1
 - Fix version
 




More information about the fedora-extras-commits mailing list