summaryrefslogtreecommitdiff
path: root/bitbake
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-03-24 10:31:06 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-03-25 17:25:50 +0000
commit80a52e7ad64d0870db18cddeda9588dc5b723f52 (patch)
tree28d86660e35561f7db577e142bb68361e466eed4 /bitbake
parentb5f8ce02b73f3b9e3ac95808c8369d85a88dfa7a (diff)
downloadopenembedded-core-80a52e7ad64d0870db18cddeda9588dc5b723f52.tar.gz
openembedded-core-80a52e7ad64d0870db18cddeda9588dc5b723f52.tar.bz2
openembedded-core-80a52e7ad64d0870db18cddeda9588dc5b723f52.tar.xz
openembedded-core-80a52e7ad64d0870db18cddeda9588dc5b723f52.zip
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>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index c564d34c7..1bb9e9472 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -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