Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 165382
Collapse All | Expand All

(-)pym/portage.py (-2 / +12 lines)
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

Return to bug 165382