bb.which: fix broken direction/reverse argument

(Bitbake rev: 4725d83f532cad96168aa9affdedb33b6fc897b7)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Chris Larson 2010-03-24 10:31:06 -07:00 committed by Richard Purdie
parent b5f8ce02b7
commit 80a52e7ad6
1 changed files with 1 additions and 1 deletions

View File

@ -611,7 +611,7 @@ def which(path, item, direction = 0):
if direction != 0:
paths.reverse()
for p in (path or "").split(':'):
for p in paths:
next = os.path.join(p, item)
if os.path.exists(next):
return next