From: Zac Medico Date: Sun, 13 Feb 2011 09:06:39 +0000 (-0800) Subject: depgraph: make empty param imply deep = True X-Git-Tag: v2.1.9.40~23 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=04fcd55e912d8278c55ab64312867ae993bcef16;p=portage.git depgraph: make empty param imply deep = True This won't change the existing depgraph behavior, but it will allow logic to be simplified in some cases such that solely the deep param needs to be consulted (rather than needing to consult both empty and deep params). --- diff --git a/pym/_emerge/create_depgraph_params.py b/pym/_emerge/create_depgraph_params.py index 375332e90..454363e6a 100644 --- a/pym/_emerge/create_depgraph_params.py +++ b/pym/_emerge/create_depgraph_params.py @@ -29,15 +29,16 @@ def create_depgraph_params(myopts, myaction): "--noreplace" in myopts or \ myopts.get("--selective", "n") != "n": myparams["selective"] = True - if "--emptytree" in myopts: - myparams["empty"] = True - myparams.pop("selective", None) if "--nodeps" in myopts: myparams.pop("recurse", None) if "--deep" in myopts: myparams["deep"] = myopts["--deep"] if "--complete-graph" in myopts: myparams["complete"] = True + if "--emptytree" in myopts: + myparams["empty"] = True + myparams["deep"] = True + myparams.pop("selective", None) rebuilt_binaries = myopts.get('--rebuilt-binaries') if rebuilt_binaries is True or \