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:08 -0700 |
commit | 366d75c5ed399b3ad6709b103c32125da70ccdd8 (patch) | |
tree | c51f2fc2a869c2fe00b2d625564c8e2778d4d2d2 | |
parent | 72e30f993ac7b964d445f5c922139574e2c9893d (diff) | |
download | portage-366d75c5ed399b3ad6709b103c32125da70ccdd8.tar.gz portage-366d75c5ed399b3ad6709b103c32125da70ccdd8.tar.bz2 portage-366d75c5ed399b3ad6709b103c32125da70ccdd8.zip |
expand_new_virt: return early for non-virtual cat
-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] |