From c3a191c1c38b98428e457c9e9ab3cf84b773e173 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 12 May 2011 10:51:08 -0700 Subject: [PATCH] expand_new_virt: return early for non-virtual cat --- pym/portage/dbapi/_expand_new_virt.py | 5 +++++ 1 file changed, 5 insertions(+) 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] -- 2.26.2