Lines 4434-4441
Link Here
|
4434 |
for x in settings.categories: |
4434 |
for x in settings.categories: |
4435 |
if mydb.cp_list(x+"/"+myp,use_cache=use_cache): |
4435 |
if mydb.cp_list(x+"/"+myp,use_cache=use_cache): |
4436 |
matches.append(x+"/"+myp) |
4436 |
matches.append(x+"/"+myp) |
4437 |
if (len(matches)>1): |
4437 |
if len(matches) > 1: |
4438 |
raise ValueError, matches |
4438 |
if len(matches) == 2: |
|
|
4439 |
for x in matches: |
4440 |
if not x.startswith("virtual/"): |
4441 |
# Assume that the non-virtual is desired. This helps |
4442 |
# avoid the ValueError for invalid deps that come from |
4443 |
# installed packages (during reverse blocker detection, |
4444 |
# for example). |
4445 |
mykey = x |
4446 |
break |
4447 |
if mykey is None: |
4448 |
raise ValueError, matches |
4439 |
elif matches: |
4449 |
elif matches: |
4440 |
mykey=matches[0] |
4450 |
mykey=matches[0] |
4441 |
|
4451 |
|