From: Chris Larson Date: Wed, 24 Mar 2010 17:31:06 +0000 (-0700) Subject: bb.which: fix broken direction/reverse argument X-Git-Tag: 2011-1~6088 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=80a52e7ad64d0870db18cddeda9588dc5b723f52;p=openembedded-core.git bb.which: fix broken direction/reverse argument (Bitbake rev: 4725d83f532cad96168aa9affdedb33b6fc897b7) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- 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): 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