[yum-cvs] yum/yum sqlitesack.py,1.23,1.24

Jeremy Katz katzj at login.linux.duke.edu
Mon Oct 24 16:01:50 UTC 2005


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

Modified Files:
	sqlitesack.py 
Log Message:
returnNewest* needs to return all arches of equal "newness"


Index: sqlitesack.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/sqlitesack.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- sqlitesack.py	21 Sep 2005 17:33:52 -0000	1.23
+++ sqlitesack.py	24 Oct 2005 16:01:47 -0000	1.24
@@ -411,7 +411,7 @@
         # if we've got zilch then raise
         if not allpkg:
             raise mdErrors.PackageSackError, 'No Package Matching %s.%s' % naTup
-        return [ mdUtils.newestInList(allpkg) ]
+        return mdUtils.newestInList(allpkg)
 
     def returnNewestByName(self, name=None):
         # If name is set do it from the database otherwise use our parent's
@@ -432,7 +432,7 @@
         # if we've got zilch then raise
         if not allpkg:
             raise mdErrors.PackageSackError, 'No Package Matching %s' % name
-        return [ mdUtils.newestInList(allpkg) ]
+        return mdUtils.newestInList(allpkg)
 
     def returnPackages(self, repoid=None):
         """Returns a list of packages, only containing nevra information """




More information about the Yum-cvs-commits mailing list