projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72e30f9
)
expand_new_virt: return early for non-virtual cat
author
Zac Medico
<zmedico@gentoo.org>
Thu, 12 May 2011 17:51:08 +0000
(10:51 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Thu, 12 May 2011 17:51:08 +0000
(10:51 -0700)
pym/portage/dbapi/_expand_new_virt.py
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/_expand_new_virt.py
b/pym/portage/dbapi/_expand_new_virt.py
index 6fccd164eb2f77da74bad08082713d2d0f01ef0a..6d6a27de803821cdb4b9c0b8f636c77bb5a2d569 100644
(file)
--- 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]