[Yum-devel] [PATCH] Check for possible inf. recursion and workaround in skip-broken. BZ 874065

James Antill james at and.org
Mon Nov 12 19:39:40 UTC 2012


---
 yum/__init__.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/yum/__init__.py b/yum/__init__.py
index 604ccce..6401645 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -1558,6 +1558,8 @@ much more problems).
             for txmbr in self.tsInfo.getMembers(dep.pkgtup):
                 for pkg in (txmbr.updates + txmbr.obsoletes):
                     toRemove.add(pkg)
+            if dep in toRemove: #  If this is true we inf. recurse, so check
+                continue        # even though it shouldn't happen. bz#874065
             toRemove.add(dep)
             self._getDepsToRemove(dep, deptree, toRemove)
 
-- 
1.7.6.5



More information about the Yum-devel mailing list