depgraph: --deep=0 is equivalent to no deep param
authorZac Medico <zmedico@gentoo.org>
Mon, 14 Feb 2011 16:43:37 +0000 (08:43 -0800)
committerZac Medico <zmedico@gentoo.org>
Mon, 14 Feb 2011 16:45:22 +0000 (08:45 -0800)
pym/_emerge/create_depgraph_params.py

index 6b97ab79de8fbde0d389da17db4c0ac539b7d583..735f12ce7069b087f0c35707e2b9e18e3324a37e 100644 (file)
@@ -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: