From 4e5332a28c86202590b5de04ad14fdfb6f6a2c91 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