]> code.ossystems Code Review - openembedded-core.git/commitdiff
bb.which: fix broken direction/reverse argument
authorChris Larson <chris_larson@mentor.com>
Wed, 24 Mar 2010 17:31:06 +0000 (10:31 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 25 Mar 2010 17:25:50 +0000 (17:25 +0000)
(Bitbake rev: 4725d83f532cad96168aa9affdedb33b6fc897b7)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/utils.py

index c564d34c7a9b10c13a0adbadf0383485605bcfe5..1bb9e9472d8c1c9f19adfca7dfcb72a50711d294 100644 (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