Fix logic to re-use blockers from the graph when populating the blocker cache.
authorZac Medico <zmedico@gentoo.org>
Wed, 30 Apr 2008 08:40:58 +0000 (08:40 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 30 Apr 2008 08:40:58 +0000 (08:40 -0000)
svn path=/main/trunk/; revision=10042

pym/_emerge/__init__.py

index 454cce343e93d143bf03bdc31d36c1f020fff148..d2ac8890146c28a85f7802920491c982dfcb3054 100644 (file)
@@ -3183,6 +3183,11 @@ class depgraph(object):
                                                if not blockers.symmetric_difference(
                                                        blocker_data.atoms):
                                                        continue
+                                               blocker_data = None
+
+                                       if blocker_data is None and \
+                                               blockers is not None:
+                                               # Re-use the blockers from the graph.
                                                blocker_atoms = sorted(blockers)
                                                counter = long(node.metadata["COUNTER"])
                                                blocker_data = \