diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2007-09-17 08:04:18 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2007-09-17 08:04:18 +0000 |
commit | 2efe83bfe12515762eb40932dab98463d5a58f8b (patch) | |
tree | 8b4e6623545aced09cff8dcb26bb77dcc429b005 /lib | |
parent | 3fc25b4666d696fc73f66ea840b950de4217d6f4 (diff) | |
download | bitbake-2efe83bfe12515762eb40932dab98463d5a58f8b.tar.gz |
BBHandler: Don't add duplicates to BBPATH
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/parse/parse_py/BBHandler.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/bb/parse/parse_py/BBHandler.py b/lib/bb/parse/parse_py/BBHandler.py index cd4a1872d..a4b408f4d 100644 --- a/lib/bb/parse/parse_py/BBHandler.py +++ b/lib/bb/parse/parse_py/BBHandler.py @@ -118,8 +118,10 @@ def handle(fn, d, include = 0): abs_fn = fn if ext != ".bbclass": - bbpath.insert(0, os.path.dirname(abs_fn)) - data.setVar('BBPATH', ":".join(bbpath), d) + dname = os.path.dirname(abs_fn) + if dname not in bbpath: + bbpath.insert(0, dname) + data.setVar('BBPATH', ":".join(bbpath), d) if include: bb.parse.mark_dependency(d, abs_fn) |