From: Zac Medico Date: Thu, 12 May 2011 17:51:08 +0000 (-0700) Subject: expand_new_virt: return early for non-virtual cat X-Git-Tag: v2.1.9.49~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c3a191c1c38b98428e457c9e9ab3cf84b773e173;p=portage.git expand_new_virt: return early for non-virtual cat --- diff --git a/pym/portage/dbapi/_expand_new_virt.py b/pym/portage/dbapi/_expand_new_virt.py index 6fccd164e..6d6a27de8 100644 --- a/pym/portage/dbapi/_expand_new_virt.py +++ b/pym/portage/dbapi/_expand_new_virt.py @@ -13,6 +13,11 @@ def expand_new_virt(vardb, atom): """ if not isinstance(atom, Atom): atom = Atom(atom) + + if not atom.cp.startswith("virtual/"): + yield atom + return + traversed = set() stack = [atom]