diff options
Diffstat (limited to 'bitbake/lib/bb/parse/parse_py')
-rw-r--r-- | bitbake/lib/bb/parse/parse_py/ConfHandler.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/ConfHandler.py b/bitbake/lib/bb/parse/parse_py/ConfHandler.py index b9712929f3..875250de40 100644 --- a/bitbake/lib/bb/parse/parse_py/ConfHandler.py +++ b/bitbake/lib/bb/parse/parse_py/ConfHandler.py | |||
@@ -57,6 +57,8 @@ __config_regexp__ = re.compile( r""" | |||
57 | __include_regexp__ = re.compile( r"include\s+(.+)" ) | 57 | __include_regexp__ = re.compile( r"include\s+(.+)" ) |
58 | __require_regexp__ = re.compile( r"require\s+(.+)" ) | 58 | __require_regexp__ = re.compile( r"require\s+(.+)" ) |
59 | __export_regexp__ = re.compile( r"export\s+([a-zA-Z0-9\-_+.${}/]+)$" ) | 59 | __export_regexp__ = re.compile( r"export\s+([a-zA-Z0-9\-_+.${}/]+)$" ) |
60 | __unset_regexp__ = re.compile( r"unset\s+([a-zA-Z0-9\-_+.${}/]+)$" ) | ||
61 | __unset_flag_regexp__ = re.compile( r"unset\s+([a-zA-Z0-9\-_+.${}/]+)\[([a-zA-Z0-9\-_+.${}/]+)\]$" ) | ||
60 | 62 | ||
61 | def init(data): | 63 | def init(data): |
62 | topdir = data.getVar('TOPDIR', False) | 64 | topdir = data.getVar('TOPDIR', False) |
@@ -185,6 +187,16 @@ def feeder(lineno, s, fn, statements): | |||
185 | ast.handleExport(statements, fn, lineno, m) | 187 | ast.handleExport(statements, fn, lineno, m) |
186 | return | 188 | return |
187 | 189 | ||
190 | m = __unset_regexp__.match(s) | ||
191 | if m: | ||
192 | ast.handleUnset(statements, fn, lineno, m) | ||
193 | return | ||
194 | |||
195 | m = __unset_flag_regexp__.match(s) | ||
196 | if m: | ||
197 | ast.handleUnsetFlag(statements, fn, lineno, m) | ||
198 | return | ||
199 | |||
188 | raise ParseError("unparsed line: '%s'" % s, fn, lineno); | 200 | raise ParseError("unparsed line: '%s'" % s, fn, lineno); |
189 | 201 | ||
190 | # Add us to the handlers list | 202 | # Add us to the handlers list |