summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/emerge3
-rw-r--r--pym/portage.py1
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