For bug #188782, keep "nomerge" nodes in the graph during the merge order calculation...
authorZac Medico <zmedico@gentoo.org>
Tue, 14 Aug 2007 06:30:43 +0000 (06:30 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 14 Aug 2007 06:30:43 +0000 (06:30 -0000)
svn path=/main/branches/2.1.2/; revision=7600

bin/emerge

index 805e86e0e4373102a4940b970d986a26fca92862..fc7d31d696be26ac2c6d2b29b992c891d98bb7fa 100755 (executable)
@@ -2237,9 +2237,6 @@ class depgraph:
                        self._altlist_cache[reversed] = retlist[:]
                        return retlist
                mygraph=self.digraph.copy()
-               for node in mygraph.order[:]:
-                       if node[-1] == "nomerge":
-                               mygraph.remove(node)
                self._merge_order_bias(mygraph)
                myblockers = self.blocker_digraph.copy()
                retlist=[]
@@ -2431,7 +2428,8 @@ class depgraph:
                        prefer_asap = True
 
                        for node in selected_nodes:
-                               retlist.append(list(node))
+                               if node[-1] != "nomerge":
+                                       retlist.append(list(node))
                                mygraph.remove(node)
                                if not reversed and not circular_blocks and myblockers.contains(node):
                                        """This node may have invalidated one or more blockers."""