From 366d75c5ed399b3ad6709b103c32125da70ccdd8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 12 May 2011 10:51:08 -0700 Subject: expand_new_virt: return early for non-virtual cat --- pym/portage/dbapi/_expand_new_virt.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pym') 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] -- cgit v1.2.3-1-g7c22