projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ad4380
)
depgraph: --deep=0 is equivalent to no deep param
author
Zac Medico
<zmedico@gentoo.org>
Mon, 14 Feb 2011 16:43:37 +0000
(08:43 -0800)
committer
Zac Medico
<zmedico@gentoo.org>
Mon, 14 Feb 2011 16:43:37 +0000
(08:43 -0800)
pym/_emerge/create_depgraph_params.py
patch
|
blob
|
history
diff --git
a/pym/_emerge/create_depgraph_params.py
b/pym/_emerge/create_depgraph_params.py
index 6b97ab79de8fbde0d389da17db4c0ac539b7d583..735f12ce7069b087f0c35707e2b9e18e3324a37e 100644
(file)
--- a/
pym/_emerge/create_depgraph_params.py
+++ b/
pym/_emerge/create_depgraph_params.py
@@
-30,8
+30,9
@@
def create_depgraph_params(myopts, myaction):
myopts.get("--selective", "n") != "n":
myparams["selective"] = True
- if "--deep" in myopts:
- myparams["deep"] = myopts["--deep"]
+ deep = myopts.get("--deep")
+ if deep is not None and deep != 0:
+ myparams["deep"] = deep
if "--complete-graph" in myopts:
myparams["complete"] = True
if "--emptytree" in myopts: