From 89607e7f6ebea3d3ef73471f68d78730402c0c2b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 14 Feb 2011 09:00:42 -0800 Subject: [PATCH] depgraph: fix virtual code to handle unsatisfied --- pym/_emerge/depgraph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 271d4bfbd..7f471170a 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -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: -- 2.26.2