diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-10-17 20:11:27 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-10-17 20:11:27 +0100 |
commit | 627d9b1bde25422ccde4e313ee3c954b5c9b2932 (patch) | |
tree | 3bdf252f71ed0a1155bef212fbf8c7415bdc2788 /bitbake-dev/lib/bb/parse/parse_py/BBHandler.py | |
parent | f1216d2adbb0371deedec3a5060f377e8eb65d64 (diff) | |
download | poky-627d9b1bde25422ccde4e313ee3c954b5c9b2932.tar.gz |
bitbake-dev: Sync with changes upstream
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake-dev/lib/bb/parse/parse_py/BBHandler.py')
-rw-r--r-- | bitbake-dev/lib/bb/parse/parse_py/BBHandler.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/bitbake-dev/lib/bb/parse/parse_py/BBHandler.py b/bitbake-dev/lib/bb/parse/parse_py/BBHandler.py index f13bb015ba..76b917ca5d 100644 --- a/bitbake-dev/lib/bb/parse/parse_py/BBHandler.py +++ b/bitbake-dev/lib/bb/parse/parse_py/BBHandler.py | |||
@@ -114,6 +114,8 @@ def finalise(fn, d): | |||
114 | tasklist = data.getVar('__BBTASKS', d) or [] | 114 | tasklist = data.getVar('__BBTASKS', d) or [] |
115 | bb.build.add_tasks(tasklist, d) | 115 | bb.build.add_tasks(tasklist, d) |
116 | 116 | ||
117 | bb.event.fire(bb.event.RecipeParsed(fn, d)) | ||
118 | |||
117 | 119 | ||
118 | def handle(fn, d, include = 0): | 120 | def handle(fn, d, include = 0): |
119 | global __func_start_regexp__, __inherit_regexp__, __export_func_regexp__, __addtask_regexp__, __addhandler_regexp__, __infunc__, __body__, __residue__ | 121 | global __func_start_regexp__, __inherit_regexp__, __export_func_regexp__, __addtask_regexp__, __addhandler_regexp__, __infunc__, __body__, __residue__ |
@@ -160,12 +162,6 @@ def handle(fn, d, include = 0): | |||
160 | f = open(fn,'r') | 162 | f = open(fn,'r') |
161 | abs_fn = fn | 163 | abs_fn = fn |
162 | 164 | ||
163 | if ext != ".bbclass": | ||
164 | dname = os.path.dirname(abs_fn) | ||
165 | if dname not in bbpath: | ||
166 | bbpath.insert(0, dname) | ||
167 | data.setVar('BBPATH', ":".join(bbpath), d) | ||
168 | |||
169 | if include: | 165 | if include: |
170 | bb.parse.mark_dependency(d, abs_fn) | 166 | bb.parse.mark_dependency(d, abs_fn) |
171 | 167 | ||