rpms/deluge/devel deluge-delugegtk.py-fix-IndexError-exception-handling.patch, NONE, 1.1 deluge.spec, 1.8, 1.9

Peter Gordon (pgordon) fedora-extras-commits at redhat.com
Thu Mar 8 01:34:35 UTC 2007


Author: pgordon

Update of /cvs/extras/rpms/deluge/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv5726/devel

Modified Files:
	deluge.spec 
Added Files:
	deluge-delugegtk.py-fix-IndexError-exception-handling.patch 
Log Message:
Add delugegtk.py-fix-IndexError-exception-handling.patch

deluge-delugegtk.py-fix-IndexError-exception-handling.patch:

--- NEW FILE deluge-delugegtk.py-fix-IndexError-exception-handling.patch ---
--- src/delugegtk.py.old	2007-03-06 18:46:00.000000000 -0800
+++ src/delugegtk.py	2007-03-07 17:16:17.000000000 -0800
@@ -599,9 +598,10 @@
 		if is_paused:
 			message = 'Paused %s'%progress
 		else:
-			message = deluge.STATE_MESSAGES[state]
-			if state in (1, 3, 4, 7):
-				message = '%s %s'%(message, progress)
+			try:
+				message = '%s %s' % (deluge.STATE_MESSAGES[state], progress)
+			except IndexError:
+				message = ''
 		return message
 	
 	# UID, Q#, Name, Size, Progress, Message, Seeders, Peers, DL, UL, ETA, Share


Index: deluge.spec
===================================================================
RCS file: /cvs/extras/rpms/deluge/devel/deluge.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- deluge.spec	7 Mar 2007 22:26:51 -0000	1.8
+++ deluge.spec	8 Mar 2007 01:34:02 -0000	1.9
@@ -11,6 +11,7 @@
 
 Source0:	http://deluge-torrent.org/downloads/%{name}-%{version}.tar.gz
 Source1:	%{name}-fixed-setup.py
+Patch0:		%{name}-delugegtk.py-fix-IndexError-exception-handling.patch
 
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -35,6 +36,7 @@
 
 %prep
 %setup -q
+%patch0 -p0 -b .delugegtk.py-fix-IndexError-exception-handling
 install -m 0755 %{SOURCE1} ./setup.py
 
 
@@ -91,6 +93,13 @@
 
 
 %changelog
+* Wed Mar 07 2007 Peter Gordon <peter at thecodergeek.com> - 0.4.99.1-3
+- Add a patch (submitted upstream) to properly catch a thrown IndexError in
+  state message updates. This should resolve the bug wherein the UI stops
+  updating its details and torrent listing.
+  + delugegtk.py-fix-IndexError-exception-handling.patch
+  
+
 * Wed Mar 07 2007 Peter Gordon <peter at thecodergeek.com> - 0.4.99.1-2
 - Drop unneeded 64bit-python_long patch; as it seems to cause more trouble than
   it's worth. Instead, pass -DAMD64 as a compiler flag on 64-bit arches.




More information about the scm-commits mailing list