summaryrefslogtreecommitdiffstats
path: root/pym/portage/dbapi/_expand_new_virt.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/dbapi/_expand_new_virt.py')
-rw-r--r--pym/portage/dbapi/_expand_new_virt.py5
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]