Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 29849 | Differences between
and this patch

Collapse All | Expand All

(-)portage.py.org (-1 / +19 lines)
Lines 2514-2520 Link Here
2514
			#deps satisfied, return None
2514
			#deps satisfied, return None
2515
			return None
2515
			return None
2516
		else:
2516
		else:
2517
			#try to satisfy first dep
2517
			#try to find an installed dep
2518
			mydbapi=vardbapi(root)
2519
			x=1
2520
			while x<len(reduced):
2521
				if (type(reduced[x])==types.ListType):
2522
					myresult=dep_zapdeps(unreduced[x], reduced[x])
2523
					if myresult:
2524
						chk=1
2525
						for y in flatten(myresult):
2526
							if (not mydbapi.match(y)):
2527
								chk=0
2528
						if chk==1:
2529
							return myresult
2530
				else:
2531
					if (mydbapi.match(unreduced[x])):
2532
						return unreduced[x]
2533
				x+=1
2534
			
2535
			#none of the deps installed, use the first one
2518
			return unreduced[1]
2536
			return unreduced[1]
2519
	else:
2537
	else:
2520
		if dep_eval(reduced):
2538
		if dep_eval(reduced):

Return to bug 29849