From 9a8cf1722153806a758b6c8be33e6e8f01de36c1 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 14 Feb 2011 08:43:37 -0800 Subject: [PATCH] depgraph: --deep=0 is equivalent to no deep param --- pym/_emerge/create_depgraph_params.py | 5 +++-- 1 file 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: -- 2.26.2