Fix digraph.hasallzeros() breakage.
authorZac Medico <zmedico@gentoo.org>
Tue, 19 Sep 2006 09:03:17 +0000 (09:03 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 19 Sep 2006 09:03:17 +0000 (09:03 -0000)
svn path=/main/trunk/; revision=4481

pym/portage.py

index bc4aee45d819332efb6b45a7e741666fae6b2e21..a0e8a87bba5eb7e8fc6bead9304b0b21401bf8c2 100644 (file)
@@ -445,7 +445,7 @@ class digraph:
                return None
 
        def hasallzeros(self):
-               return len(self.leaf_nodes() == 0)
+               return len(self.leaf_nodes(ignore_soft_deps=True)) == len(self.order)
 
        def debug_print(self):
                for node in self.nodes: