diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-05-12 10:51:08 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-05-12 10:51:41 -0700 |
commit | c3a191c1c38b98428e457c9e9ab3cf84b773e173 (patch) | |
tree | 65698a61758a4cef0a58a37175215657c447b151 /pym | |
parent | 6416b9c83047419818c4cb18cc90fb64dfd1d179 (diff) | |
download | portage-c3a191c1c38b98428e457c9e9ab3cf84b773e173.tar.gz portage-c3a191c1c38b98428e457c9e9ab3cf84b773e173.tar.bz2 portage-c3a191c1c38b98428e457c9e9ab3cf84b773e173.zip |
expand_new_virt: return early for non-virtual cat
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage/dbapi/_expand_new_virt.py | 5 |
1 files changed, 5 insertions, 0 deletions
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] |