summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/create_depgraph_params.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pym/_emerge/create_depgraph_params.py b/pym/_emerge/create_depgraph_params.py
index 6b97ab79d..735f12ce7 100644
--- 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: