From 2e79f785a5ae93d042275508f3e1ac8078e24842 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 2 May 2008 19:20:29 +0000 Subject: [PATCH] In depgraph._serialize_tasks(), filter "nomerge" nodes at a more appropriate place. svn path=/main/trunk/; revision=10098 --- pym/_emerge/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 506255087..a988c6bac 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -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: -- 2.26.2