summaryrefslogtreecommitdiffstats
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
parentb5f8ce02b73f3b9e3ac95808c8369d85a88dfa7a (diff)
downloadpoky-80a52e7ad64d0870db18cddeda9588dc5b723f52.tar.gz
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>
-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 c564d34c7a..1bb9e9472d 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -611,7 +611,7 @@ def which(path, item, direction = 0):
611 if direction != 0: 611 if direction != 0:
612 paths.reverse() 612 paths.reverse()
613 613
614 for p in (path or "").split(':'): 614 for p in paths:
615 next = os.path.join(p, item) 615 next = os.path.join(p, item)
616 if os.path.exists(next): 616 if os.path.exists(next):
617 return next 617 return next