diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-07 13:10:51 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-07 17:13:13 +0000 |
commit | 23200858b4b41686cb4e73a30a2b1a024fec85a3 (patch) | |
tree | 7ad60726112791b648338c790535c05a35638069 /bitbake | |
parent | 25bc944d30dedd9ac94a7398f6ae378f8460a35d (diff) | |
download | poky-23200858b4b41686cb4e73a30a2b1a024fec85a3.tar.gz |
bitbake: BBHandler: Ensure parser state engine is correctly reset for new parsing
The classes variable in particular could be in an odd state if parsing of a
previous recipe had abruptly ended.
(Bitbake rev: 3dc5e896a97154914cee6c47900e3bb2a2627cdb)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/parse/parse_py/BBHandler.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py index 2e0647b5df..c4e579d073 100644 --- a/bitbake/lib/bb/parse/parse_py/BBHandler.py +++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py | |||
@@ -107,14 +107,15 @@ def get_statements(filename, absolute_filename, base_name): | |||
107 | return statements | 107 | return statements |
108 | 108 | ||
109 | def handle(fn, d, include): | 109 | def handle(fn, d, include): |
110 | global __func_start_regexp__, __inherit_regexp__, __export_func_regexp__, __addtask_regexp__, __addhandler_regexp__, __infunc__, __body__, __residue__ | 110 | global __func_start_regexp__, __inherit_regexp__, __export_func_regexp__, __addtask_regexp__, __addhandler_regexp__, __infunc__, __body__, __residue__, __inpython__, classes |
111 | __body__ = [] | 111 | __body__ = [] |
112 | __infunc__ = "" | 112 | __infunc__ = "" |
113 | __classname__ = "" | 113 | __classname__ = "" |
114 | __residue__ = [] | 114 | __residue__ = [] |
115 | 115 | __inpython__ = False | |
116 | 116 | ||
117 | if include == 0: | 117 | if include == 0: |
118 | classes = [ None, ] | ||
118 | logger.debug(2, "BB %s: handle(data)", fn) | 119 | logger.debug(2, "BB %s: handle(data)", fn) |
119 | else: | 120 | else: |
120 | logger.debug(2, "BB %s: handle(data, include)", fn) | 121 | logger.debug(2, "BB %s: handle(data, include)", fn) |