commit:     d10a23b9c744a353772d0be89ba5f49a34b5220d
Author:     Sebastian Luther <SebastianLuther <AT> gmx <DOT> de>
AuthorDate: Mon Mar 24 17:11:33 2014 +0000
Commit:     Sebastian Luther <SebastianLuther <AT> gmx <DOT> de >
CommitDate: Mon Mar 24 17:11:33 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=d10a23b9

Fix bug in _remove_pkg logic (bug 505422)

---
 pym/_emerge/depgraph.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index 04d7aae..f27e855 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -2431,7 +2431,8 @@ class depgraph(object):
                self._dynamic_config._blocked_world_pkgs.pop(pkg, None)
 
                for child in children:
-                       if not self._dynamic_config.digraph.parent_nodes(child):
+                       if child in self._dynamic_config.digraph and \
+                               not 
self._dynamic_config.digraph.parent_nodes(child):
                                self._remove_pkg(child)
 
                # Clear caches.

Reply via email to