Fix depgraph._prune_tree_display() to preserve uninstall tasks. Thanks to
authorZac Medico <zmedico@gentoo.org>
Sat, 21 Nov 2009 04:05:40 +0000 (04:05 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 21 Nov 2009 04:05:40 +0000 (04:05 -0000)
Jonathan Callen <abcd@g.o> for reporting. (trunk r14855)

svn path=/main/branches/2.1.7/; revision=14866

pym/_emerge/depgraph.py

index 2cb10650a7b0c92bc88c7a44fa4980ffd6513812..53b39f6cb5fb32ddf1c7585f693228d5bb3fef9e 100644 (file)
@@ -4738,7 +4738,7 @@ class depgraph(object):
                                del display_list[i]
                                continue
                        if ordered and isinstance(node, Package) \
-                               and node.operation == 'merge':
+                               and node.operation in ('merge', 'uninstall'):
                                last_merge_depth = depth
                                continue
                        if depth >= last_merge_depth or \