[yum-cvs] /yum/yum depsolve.py,1.160,1.161
Tim Lauridsen
timlau at linux.duke.edu
Thu Apr 19 07:43:11 UTC 2007
Update of /home/groups/yum/cvs//yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv13575/yum
Modified Files:
depsolve.py
Log Message:
Add patch by James Antill, to handle the case where all packages has been removed
by a plugin.
Index: depsolve.py
===================================================================
RCS file: /home/groups/yum/cvs//yum/yum/depsolve.py,v
retrieving revision 1.160
retrieving revision 1.161
diff -u -r1.160 -r1.161
--- depsolve.py 17 Apr 2007 20:54:03 -0000 1.160
+++ depsolve.py 19 Apr 2007 07:43:09 -0000 1.161
@@ -794,6 +794,10 @@
deps = self._mytsCheck()
if not deps:
+ # Handle the case where self.tsInfo has been
+ # cleared by a plugin.
+ if not len(self.tsInfo):
+ return (0, ['Success - empty transaction'])
# FIXME: this doesn't belong here at all...
for txmbr in self.tsInfo.getMembers():
if self.allowedMultipleInstalls(txmbr.po) and \
More information about the Yum-cvs-commits
mailing list