[yum-cvs] yum/yum rpmsack.py,1.27,1.28

Seth Vidal skvidal at linux.duke.edu
Fri Sep 8 16:38:47 UTC 2006


Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv19386

Modified Files:
	rpmsack.py 
Log Message:

make getNameArchPkgList() and getNamePkgList() consistent - if our pkglist
is length zero then they would have traced back.


Index: rpmsack.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/rpmsack.py,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- rpmsack.py	8 Sep 2006 16:29:07 -0000	1.27
+++ rpmsack.py	8 Sep 2006 16:38:44 -0000	1.28
@@ -293,7 +293,8 @@
     def getNameArchPkgList(self):
         warnings.warn('getNameArchPkgList() will go away in a future version of Yum.\n',
                 DeprecationWarning, stacklevel=2)
-   
+        
+        lst = []
         for (name, arch, epoch, ver, rel) in self.pkglist:
             lst.append((name, arch))
         
@@ -306,6 +307,7 @@
         lst = []
         for (name, arch, epoch, ver, rel) in self.pkglist:
             lst.append(name)
+
         return miscutils.unique(lst)
     
     def returnTupleByKeyword(self, name=None, arch=None, epoch=None, ver=None, rel=None):




More information about the Yum-cvs-commits mailing list