aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/parse
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2007-09-17 08:04:18 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2007-09-17 08:04:18 +0000
commit2efe83bfe12515762eb40932dab98463d5a58f8b (patch)
tree8b4e6623545aced09cff8dcb26bb77dcc429b005 /lib/bb/parse
parent3fc25b4666d696fc73f66ea840b950de4217d6f4 (diff)
downloadbitbake-2efe83bfe12515762eb40932dab98463d5a58f8b.tar.gz
BBHandler: Don't add duplicates to BBPATH
Diffstat (limited to 'lib/bb/parse')
-rw-r--r--lib/bb/parse/parse_py/BBHandler.py6
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)