add_pkg_deps: removal action discard DEPEND early
authorZac Medico <zmedico@gentoo.org>
Wed, 4 May 2011 21:40:11 +0000 (14:40 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 4 May 2011 21:40:11 +0000 (14:40 -0700)
pym/_emerge/depgraph.py

index dd65a4501f2a2e3f10d759f7e85ad994bbfaf316..52b92e2aab18e327693ee80a9f21616f7e142878 100644 (file)
@@ -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: