1 |
commit: 021da7d19f9da25329880096fccf1cc556a011e2 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 4 21:40:11 2011 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 4 21:40:11 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=021da7d1 |
7 |
|
8 |
add_pkg_deps: removal action discard DEPEND early |
9 |
|
10 |
--- |
11 |
pym/_emerge/depgraph.py | 3 +++ |
12 |
1 files changed, 3 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py |
15 |
index dd65a45..52b92e2 100644 |
16 |
--- a/pym/_emerge/depgraph.py |
17 |
+++ b/pym/_emerge/depgraph.py |
18 |
@@ -1334,6 +1334,9 @@ class depgraph(object): |
19 |
ignore_build_time_deps = True |
20 |
|
21 |
if removal_action and self._dynamic_config.myparams.get("bdeps", "y") == "n": |
22 |
+ # Removal actions never traverse ignored buildtime |
23 |
+ # dependencies, so it's safe to discard them early. |
24 |
+ edepend["DEPEND"] = "" |
25 |
ignore_build_time_deps = True |
26 |
|
27 |
if removal_action: |