From: Zac Medico Date: Mon, 14 Feb 2011 17:00:42 +0000 (-0800) Subject: depgraph: fix virtual code to handle unsatisfied X-Git-Tag: v2.1.9.40~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=89607e7f6ebea3d3ef73471f68d78730402c0c2b;p=portage.git depgraph: fix virtual code to handle unsatisfied --- 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: