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:00:42 +0000 (09:00 -0800)
pym/_emerge/depgraph.py

index d83f8a893f37fa74a76943cf127cab75b82cad67..7e55c776e80961518d2e9f5f90531f9845668dae 100644 (file)
@@ -1307,7 +1307,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)
@@ -1389,7 +1389,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: