summaryrefslogtreecommitdiffstats
path: root/pym/portage.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage.py')
-rw-r--r--pym/portage.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 5c4389c9c..f6dfdcf84 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -4435,6 +4435,7 @@ def cpv_expand(mycpv, mydb=None, use_cache=1, settings=None):
if mydb.cp_list(x+"/"+myp,use_cache=use_cache):
matches.append(x+"/"+myp)
if len(matches) > 1:
+ virtual_name_collision = False
if len(matches) == 2:
for x in matches:
if not x.startswith("virtual/"):
@@ -4443,8 +4444,9 @@ def cpv_expand(mycpv, mydb=None, use_cache=1, settings=None):
# installed packages (during reverse blocker detection,
# for example).
mykey = x
- break
- if mykey is None:
+ else:
+ virtual_name_collision = True
+ if not virtual_name_collision:
raise ValueError, matches
elif matches:
mykey=matches[0]