diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-03-24 10:31:06 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-03-24 11:24:52 -0700 |
commit | 4725d83f532cad96168aa9affdedb33b6fc897b7 (patch) | |
tree | 183eba73d75fe9666ffe32876f27845a73feac45 | |
parent | 5593de13a18792e36d15dfd2a9579b36284e4d67 (diff) | |
download | bitbake-4725d83f532cad96168aa9affdedb33b6fc897b7.tar.gz |
bb.which: fix broken direction/reverse argument
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r-- | lib/bb/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/utils.py b/lib/bb/utils.py index c564d34c7..1bb9e9472 100644 --- a/lib/bb/utils.py +++ b/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 |