From: Zac Medico Date: Mon, 14 Feb 2011 16:43:37 +0000 (-0800) Subject: depgraph: --deep=0 is equivalent to no deep param X-Git-Tag: v2.1.9.40~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9a8cf1722153806a758b6c8be33e6e8f01de36c1;p=portage.git depgraph: --deep=0 is equivalent to no deep param --- 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: