[yum-cvs] yum/yum __init__.py,1.130,1.131

Panu Matilainen pmatilai at login.linux.duke.edu
Wed Jul 13 10:30:01 UTC 2005


Update of /home/groups/yum/cvs/yum/yum
In directory login:/tmp/cvs-serv26767/yum

Modified Files:
	__init__.py 
Log Message:
Fix TypeError traceback in yum.getPackageObject() when package not found.
CVSr ----------------------------------------------------------------------


Index: __init__.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/__init__.py,v
retrieving revision 1.130
retrieving revision 1.131
diff -u -r1.130 -r1.131
--- __init__.py	8 Jul 2005 05:20:16 -0000	1.130
+++ __init__.py	13 Jul 2005 10:29:59 -0000	1.131
@@ -1227,7 +1227,7 @@
         pkgs = self.pkgSack.packagesByTuple(pkgtup)
 
         if len(pkgs) == 0:
-            raise Errors.DepError, 'Package tuple %s could not be found in packagesack' % pkgtup
+            raise Errors.DepError, 'Package tuple %s could not be found in packagesack' % str(pkgtup)
             return None
             
         if len(pkgs) > 1: # boy it'd be nice to do something smarter here FIXME




More information about the Yum-cvs-commits mailing list