Fix loop logic some more for bug #252572.
authorZac Medico <zmedico@gentoo.org>
Fri, 26 Dec 2008 20:49:57 +0000 (20:49 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 26 Dec 2008 20:49:57 +0000 (20:49 -0000)
svn path=/main/trunk/; revision=12349

pym/_emerge/__init__.py

index e34f7ab35b419dcddd22111b056b9e03b1bdb5a2..880d9cbcccf57255e0aed01a3c4c5983602a7899 100644 (file)
@@ -7007,15 +7007,17 @@ class depgraph(object):
                                                except KeyError:
                                                        pass
                                                else:
+                                                       uninst_task = node
                                                        ignored_uninstall_tasks.add(node)
                                                        break
 
-                               # After dropping an Uninstall task, reset
-                               # the state variables for leaf node selection and
-                               # continue trying to select leaf nodes.
-                               prefer_asap = True
-                               accept_root_node = False
-                               continue
+                               if uninst_task is not None:
+                                       # After dropping an Uninstall task, reset
+                                       # the state variables for leaf node selection and
+                                       # continue trying to select leaf nodes.
+                                       prefer_asap = True
+                                       accept_root_node = False
+                                       continue
 
                        if not selected_nodes:
                                self._circular_deps_for_display = mygraph