1 |
commit: f241cdb50b0f8a448216a1e5155dba8d0abddf56 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 5 21:37:35 2012 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 5 21:37:35 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=f241cdb5 |
7 |
|
8 |
depgraph._complete_graph: fix for --root-deps |
9 |
|
10 |
--- |
11 |
pym/_emerge/depgraph.py | 3 ++- |
12 |
1 files changed, 2 insertions(+), 1 deletions(-) |
13 |
|
14 |
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py |
15 |
index e9cb22b..e77c0e8 100644 |
16 |
--- a/pym/_emerge/depgraph.py |
17 |
+++ b/pym/_emerge/depgraph.py |
18 |
@@ -4329,7 +4329,8 @@ class depgraph(object): |
19 |
args = self._dynamic_config._initial_arg_list[:] |
20 |
for root in self._frozen_config.roots: |
21 |
if root != self._frozen_config.target_root and \ |
22 |
- "remove" in self._dynamic_config.myparams: |
23 |
+ ("remove" in self._dynamic_config.myparams or |
24 |
+ self._frozen_config.myopts.get("--root-deps") is not None): |
25 |
# Only pull in deps for the relevant root. |
26 |
continue |
27 |
depgraph_sets = self._dynamic_config.sets[root] |