[yum-cvs] yum/yum depsolve.py,1.167,1.168
Jeremy Katz
katzj at linux.duke.edu
Wed Jun 13 17:52:04 UTC 2007
Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv8269/yum
Modified Files:
depsolve.py
Log Message:
only set a package as being "seen" if we've successfully managed to resolve
its deps. otherwise, the missing deps just get lost. fixes at least
rh#244077, and there are a number of other potential candidates as dupes...
Index: depsolve.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/depsolve.py,v
retrieving revision 1.167
retrieving revision 1.168
diff -u -r1.167 -r1.168
--- depsolve.py 7 Jun 2007 22:53:24 -0000 1.167
+++ depsolve.py 13 Jun 2007 17:52:02 -0000 1.168
@@ -762,10 +762,12 @@
self.verbose_logger.log(logginglevels.DEBUG_2,
"Checking deps for %s" %(txmbr,))
if txmbr.output_state in TS_INSTALL_STATES:
- ret.extend(self._checkInstall(txmbr))
+ thisneeds = self._checkInstall(txmbr)
elif txmbr.output_state in TS_REMOVE_STATES:
- ret.extend(self._checkRemove(txmbr))
- self._dcobj.already_seen[txmbr] = 1
+ thisneeds = self._checkRemove(txmbr)
+ if len(thisneeds) == 0:
+ self._dcobj.already_seen[txmbr] = 1
+ ret.extend(thisneeds)
return ret
More information about the Yum-cvs-commits
mailing list