summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-05-04 14:40:11 -0700
committerZac Medico <zmedico@gentoo.org>2011-05-04 14:40:11 -0700
commit021da7d19f9da25329880096fccf1cc556a011e2 (patch)
tree35926ad5300cf08d718e816b5615d7d9296420ec /pym
parentdbb89fde73049da97fdbfa157618977317440db5 (diff)
downloadportage-021da7d19f9da25329880096fccf1cc556a011e2.tar.gz
portage-021da7d19f9da25329880096fccf1cc556a011e2.tar.bz2
portage-021da7d19f9da25329880096fccf1cc556a011e2.zip
add_pkg_deps: removal action discard DEPEND early
Diffstat (limited to 'pym')
-rw-r--r--pym/_emerge/depgraph.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index dd65a4501..52b92e2aa 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -1334,6 +1334,9 @@ class depgraph(object):
ignore_build_time_deps = True
if removal_action and self._dynamic_config.myparams.get("bdeps", "y") == "n":
+ # Removal actions never traverse ignored buildtime
+ # dependencies, so it's safe to discard them early.
+ edepend["DEPEND"] = ""
ignore_build_time_deps = True
if removal_action: