diff options
-rw-r--r-- | bitbake/lib/bb/codeparser.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/codeparser.py b/bitbake/lib/bb/codeparser.py index 979e6bdfd9..e44e791585 100644 --- a/bitbake/lib/bb/codeparser.py +++ b/bitbake/lib/bb/codeparser.py | |||
@@ -35,7 +35,7 @@ def check_indent(codestr): | |||
35 | 35 | ||
36 | class CodeParserCache(MultiProcessCache): | 36 | class CodeParserCache(MultiProcessCache): |
37 | cache_file_name = "bb_codeparser.dat" | 37 | cache_file_name = "bb_codeparser.dat" |
38 | CACHE_VERSION = 2 | 38 | CACHE_VERSION = 3 |
39 | 39 | ||
40 | def __init__(self): | 40 | def __init__(self): |
41 | MultiProcessCache.__init__(self) | 41 | MultiProcessCache.__init__(self) |
@@ -101,6 +101,7 @@ class BufferedLogger(Logger): | |||
101 | 101 | ||
102 | class PythonParser(): | 102 | class PythonParser(): |
103 | getvars = ("d.getVar", "bb.data.getVar", "data.getVar", "d.appendVar", "d.prependVar") | 103 | getvars = ("d.getVar", "bb.data.getVar", "data.getVar", "d.appendVar", "d.prependVar") |
104 | containsfuncs = ("bb.utils.contains", "base_contains", "oe.utils.contains") | ||
104 | execfuncs = ("bb.build.exec_func", "bb.build.exec_task") | 105 | execfuncs = ("bb.build.exec_func", "bb.build.exec_task") |
105 | 106 | ||
106 | def warn(self, func, arg): | 107 | def warn(self, func, arg): |
@@ -119,7 +120,7 @@ class PythonParser(): | |||
119 | 120 | ||
120 | def visit_Call(self, node): | 121 | def visit_Call(self, node): |
121 | name = self.called_node_name(node.func) | 122 | name = self.called_node_name(node.func) |
122 | if name in self.getvars: | 123 | if name in self.getvars or name in self.containsfuncs: |
123 | if isinstance(node.args[0], ast.Str): | 124 | if isinstance(node.args[0], ast.Str): |
124 | self.var_references.add(node.args[0].s) | 125 | self.var_references.add(node.args[0].s) |
125 | else: | 126 | else: |