From c331d688682fb8a106b4677f7c5867ee91aeb8ad Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 3 Oct 2006 07:05:50 +0000 Subject: [PATCH] Add a digraph.NONE constant to represent no priority. svn path=/main/trunk/; revision=4579 --- bin/emerge | 3 ++- pym/portage.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- 2.26.2