In depgraph._serialize_tasks(), filter "nomerge" nodes at a more appropriate
authorZac Medico <zmedico@gentoo.org>
Fri, 2 May 2008 19:20:29 +0000 (19:20 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 2 May 2008 19:20:29 +0000 (19:20 -0000)
place.

svn path=/main/trunk/; revision=10098

pym/_emerge/__init__.py

index 5062550877b27eef69769070001c924bdfe52ab1..a988c6bac2f5ad5bdd1a8d0a9b23da0f2abc44b6 100644 (file)
@@ -3793,6 +3793,9 @@ class depgraph(object):
                        mygraph.difference_update(selected_nodes)
 
                        for node in selected_nodes:
+                               if isinstance(node, Package) and \
+                                       node.operation == "nomerge":
+                                       continue
 
                                # Handle interactions between blockers
                                # and uninstallation tasks.
@@ -3826,8 +3829,7 @@ class depgraph(object):
                                                        myblocker_uninstalls.remove(blocker)
                                                        solved_blockers.add(blocker)
 
-                               if node[-1] != "nomerge":
-                                       retlist.append(node)
+                               retlist.append(node)
 
                                if isinstance(node, Package) and \
                                        "uninstall" == node.operation: