Ensure that the code for bug #165342 only affects name collisions with virtuals.
authorZac Medico <zmedico@gentoo.org>
Mon, 5 Feb 2007 06:46:31 +0000 (06:46 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 5 Feb 2007 06:46:31 +0000 (06:46 -0000)
svn path=/main/trunk/; revision=5891

pym/portage/__init__.py

index 913c705637813d1c0f0cfebc0f803cce454a9cd7..a2d91c15ea38e37320614d6eae648403f8c0be30 100644 (file)
@@ -4447,6 +4447,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/"):
@@ -4455,8 +4456,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]