From 091ebf260e1fa28134150dff957b6e873b6f2fae 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 d83f8a893..7e55c776e 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -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: -- 2.26.2