From: Zac Medico Date: Mon, 5 Feb 2007 22:00:44 +0000 (-0000) Subject: Ensure that the code for bug #165382 only affects name collisions with virtuals.... X-Git-Tag: v2.1.2-r9~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a9f650cea692eccfde565fe5c7a1a01f235230cb;p=portage.git Ensure that the code for bug #165382 only affects name collisions with virtuals. (trunk r5890:5891) svn path=/main/branches/2.1.2/; revision=5901 --- 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]