mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 12:32:15 +02:00
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:
committed by
Richard Purdie
parent
b5f8ce02b7
commit
80a52e7ad6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user