projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7a49d2
)
Add a digraph.NONE constant to represent no priority.
author
Zac Medico
<zmedico@gentoo.org>
Tue, 3 Oct 2006 07:05:50 +0000
(07:05 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 3 Oct 2006 07:05:50 +0000
(07:05 -0000)
svn path=/main/trunk/; revision=4579
bin/emerge
patch
|
blob
|
history
pym/portage.py
patch
|
blob
|
history
diff --git
a/bin/emerge
b/bin/emerge
index c543913b26aee59e06db15000f42f4a4686f9e3f..d73283963c9eb50d45a6772756b856e184e37754 100755
(executable)
--- 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 73b88a838a50856d69790e46c483e178279eb2f3..50ad21635722aa216bad01d7515120f3c49f09b9 100644
(file)
--- 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