[yum-git] Branch 'yum-3_2_X' - yum/__init__.py
James Antill
james at linux.duke.edu
Thu May 29 15:59:17 UTC 2008
yum/__init__.py | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 32d40d2b34eafec8b474bf8d92ed42f5b4a4de04
Author: James Antill <james at and.org>
Date: Thu May 29 11:59:04 2008 -0400
Allow non-obs. looping installs too :)
diff --git a/yum/__init__.py b/yum/__init__.py
index 44f485e..9642d7c 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -2105,11 +2105,14 @@ class YumBase(depsolve.Depsolve):
moving one twice as fast as the other. If they are ever == you have
a loop. If loop we return None, if no loop the last element. """
slow = node
+ done = False
while True:
next = next_func(node)
+ if next is None and not done: return None
if next is None: return node
node = next_func(next)
if node is None: return next
+ done = True
slow = next_func(slow)
if next == slow:
More information about the Yum-cvs-commits
mailing list