Hi!

While having a look at a bug in the FC6 yum-updatesd I found out that error handling fails when yum-updatesd directly forwards exception into its error handling code that tries to send them via dbus.

I found two places in the current CVS which also look suspicious. Patch is attached.

Florian Festi
Index: yum-updatesd.py
===================================================================
RCS file: /cvsroot/yum/cvs/yum/yum-updatesd.py,v
retrieving revision 1.42
diff -u -r1.42 yum-updatesd.py
--- yum-updatesd.py	3 May 2007 01:24:34 -0000	1.42
+++ yum-updatesd.py	20 Jun 2007 12:06:52 -0000
@@ -309,7 +309,7 @@
                 try:
                     self.updd.getKeyForPackage(po)
                 except yum.Errors.YumBaseError, errmsg:
-                    self.failed([errmsg])
+                    self.failed([str(errmsg)])
 
         del self.updd.ts
         self.updd.initActionTs() # make a new, blank ts to populate
@@ -323,7 +323,7 @@
         try:
             self.updd.runTransaction(cb=cb)
         except yum.Errors.YumBaseError, err:
-            self.failed([err])
+            self.failed([str(err)])
 
         self.success()
 
_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel

Reply via email to