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.2.0_alpha24~24 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=878f166c5a06b0ab6c5a34dd658c878cc7605fe7;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 \