Add a digraph.NONE constant to represent no priority.
authorZac Medico <zmedico@gentoo.org>
Tue, 3 Oct 2006 07:05:50 +0000 (07:05 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 3 Oct 2006 07:05:50 +0000 (07:05 -0000)
svn path=/main/trunk/; revision=4579

bin/emerge
pym/portage.py

index c543913b26aee59e06db15000f42f4a4686f9e3f..d73283963c9eb50d45a6772756b856e184e37754 100755 (executable)
@@ -1260,7 +1260,8 @@ class depgraph:
                else:
                        get_nodes = mygraph.leaf_nodes
                while not mygraph.empty():
-                       for ignore_priority in (-1, digraph.SOFT, digraph.MEDIUM):
+                       for ignore_priority in \
+                               (digraph.NONE, digraph.SOFT, digraph.MEDIUM):
                                nodes = get_nodes(ignore_priority=ignore_priority)
                                if nodes:
                                        break
index 73b88a838a50856d69790e46c483e178279eb2f3..50ad21635722aa216bad01d7515120f3c49f09b9 100644 (file)
@@ -312,6 +312,7 @@ def flatten(mytokens):
 #beautiful directed graph object
 
 class digraph:
+       NONE   = -1
        SOFT   = 0
        MEDIUM = 1
        HARD   = 2