[yum-cvs] yum/rpmUtils updates.py,1.17,1.18
Seth Vidal
skvidal at login.linux.duke.edu
Fri Mar 11 09:08:25 UTC 2005
Update of /home/groups/yum/cvs/yum/rpmUtils
In directory login:/tmp/cvs-serv15108/rpmUtils
Modified Files:
updates.py
Log Message:
packageSack - packagesByTuple(pkgtup)
updates - getObsoletedList()
Index: updates.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/rpmUtils/updates.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- updates.py 28 Oct 2004 22:13:29 -0000 1.17
+++ updates.py 11 Mar 2005 09:08:22 -0000 1.18
@@ -493,7 +493,18 @@
returnlist = self.reduceListByNameArch(tmplist, name, arch)
return returnlist
-
+
+ def getObsoletedList(self, newest=0, name=None):
+ """returns a list of pkgtuples obsoleting the package in name"""
+ returnlist = []
+ for new in self.obsoletes.keys():
+ for obstup in self.obsoletes[new]:
+ (n, a, e, v, r) = obstup
+ if n == name:
+ returnlist.append(new)
+ continue
+ return returnlist
+
def getOthersList(self, name=None, arch=None):
"""returns a naevr tuple of the packages that are neither installed
nor an update - this may include something that obsoletes an installed
More information about the Yum-cvs-commits
mailing list