depgraph: fix virtual code to handle unsatisfied
authorZac Medico <zmedico@gentoo.org>
Mon, 14 Feb 2011 17:00:42 +0000 (09:00 -0800)
committerZac Medico <zmedico@gentoo.org>
Mon, 14 Feb 2011 17:02:18 +0000 (09:02 -0800)
pym/_emerge/depgraph.py

index 271d4bfbde8e7c11581495a78bc83323d42befa6..7f471170abd56590c197c95bff64c69e8149616b 100644 (file)
@@ -1326,7 +1326,7 @@ class depgraph(object):
                                if not self._add_dep(dep,
                                        allow_unsatisfied=allow_unsatisfied):
                                        return 0
-                               if is_virt:
+                               if is_virt and dep.child is not None:
                                        traversed_virt_pkgs.add(dep.child)
 
                selected_atoms.pop(pkg)
@@ -1408,7 +1408,7 @@ class depgraph(object):
                                        if not self._add_dep(dep,
                                                allow_unsatisfied=allow_unsatisfied):
                                                return 0
-                                       if is_virt:
+                                       if is_virt and dep.child is not None:
                                                traversed_virt_pkgs.add(dep.child)
 
                if debug: