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:
parent
b5f8ce02b7
commit
80a52e7ad6
|
@ -611,7 +611,7 @@ def which(path, item, direction = 0):
|
||||||
if direction != 0:
|
if direction != 0:
|
||||||
paths.reverse()
|
paths.reverse()
|
||||||
|
|
||||||
for p in (path or "").split(':'):
|
for p in paths:
|
||||||
next = os.path.join(p, item)
|
next = os.path.join(p, item)
|
||||||
if os.path.exists(next):
|
if os.path.exists(next):
|
||||||
return next
|
return next
|
||||||
|
|
Loading…
Reference in New Issue