From: Zac Medico Date: Mon, 5 Feb 2007 06:46:31 +0000 (-0000) Subject: Ensure that the code for bug #165342 only affects name collisions with virtuals. X-Git-Tag: v2.2_pre1~1751 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=59a651f01b787a307ffbeccbb11a61d9b62d9136;p=portage.git Ensure that the code for bug #165342 only affects name collisions with virtuals. svn path=/main/trunk/; revision=5891 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 913c70563..a2d91c15e 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -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]