diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-10-03 07:05:50 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-10-03 07:05:50 +0000 |
commit | c331d688682fb8a106b4677f7c5867ee91aeb8ad (patch) | |
tree | 56f15557a7f434e2b3d4b28fb4a0ceac4708b713 | |
parent | d7a49d2705ee9ce532e8fd30c897695052b9c053 (diff) | |
download | portage-c331d688682fb8a106b4677f7c5867ee91aeb8ad.tar.gz portage-c331d688682fb8a106b4677f7c5867ee91aeb8ad.tar.bz2 portage-c331d688682fb8a106b4677f7c5867ee91aeb8ad.zip |
Add a digraph.NONE constant to represent no priority.
svn path=/main/trunk/; revision=4579
-rwxr-xr-x | bin/emerge | 3 | ||||
-rw-r--r-- | pym/portage.py | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/bin/emerge b/bin/emerge index c543913b2..d73283963 100755 --- a/bin/emerge +++ b/bin/emerge @@ -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 diff --git a/pym/portage.py b/pym/portage.py index 73b88a838..50ad21635 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -312,6 +312,7 @@ def flatten(mytokens): #beautiful directed graph object class digraph: + NONE = -1 SOFT = 0 MEDIUM = 1 HARD = 2 |