From 878f166c5a06b0ab6c5a34dd658c878cc7605fe7 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 13 Feb 2011 01:06:39 -0800 Subject: [PATCH] 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). --- pym/_emerge/create_depgraph_params.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 \ -- 2.26.2