summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-02-13 01:06:39 -0800
committerZac Medico <zmedico@gentoo.org>2011-02-13 20:27:38 -0800
commit04fcd55e912d8278c55ab64312867ae993bcef16 (patch)
tree323cfae4ecf372b7e6b3e59ffb846444fdfc43cc /pym
parentdabe09e7589b9e8903c7fb1fe129b7b6859cdf68 (diff)
downloadportage-04fcd55e912d8278c55ab64312867ae993bcef16.tar.gz
portage-04fcd55e912d8278c55ab64312867ae993bcef16.tar.bz2
portage-04fcd55e912d8278c55ab64312867ae993bcef16.zip
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).
Diffstat (limited to 'pym')
-rw-r--r--pym/_emerge/create_depgraph_params.py7
1 files 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 \