1 |
commit: d10a23b9c744a353772d0be89ba5f49a34b5220d |
2 |
Author: Sebastian Luther <SebastianLuther <AT> gmx <DOT> de> |
3 |
AuthorDate: Mon Mar 24 17:11:33 2014 +0000 |
4 |
Commit: Sebastian Luther <SebastianLuther <AT> gmx <DOT> de > |
5 |
CommitDate: Mon Mar 24 17:11:33 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=d10a23b9 |
7 |
|
8 |
Fix bug in _remove_pkg logic (bug 505422) |
9 |
|
10 |
--- |
11 |
pym/_emerge/depgraph.py | 3 ++- |
12 |
1 file changed, 2 insertions(+), 1 deletion(-) |
13 |
|
14 |
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py |
15 |
index 04d7aae..f27e855 100644 |
16 |
--- a/pym/_emerge/depgraph.py |
17 |
+++ b/pym/_emerge/depgraph.py |
18 |
@@ -2431,7 +2431,8 @@ class depgraph(object): |
19 |
self._dynamic_config._blocked_world_pkgs.pop(pkg, None) |
20 |
|
21 |
for child in children: |
22 |
- if not self._dynamic_config.digraph.parent_nodes(child): |
23 |
+ if child in self._dynamic_config.digraph and \ |
24 |
+ not self._dynamic_config.digraph.parent_nodes(child): |
25 |
self._remove_pkg(child) |
26 |
|
27 |
# Clear caches. |