diff options
Diffstat (limited to 'bitbake/lib/bb/codeparser.py')
-rw-r--r-- | bitbake/lib/bb/codeparser.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/codeparser.py b/bitbake/lib/bb/codeparser.py index 8439efbb2e..2e8de12f33 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 = 5 | 38 | CACHE_VERSION = 6 |
39 | 39 | ||
40 | def __init__(self): | 40 | def __init__(self): |
41 | MultiProcessCache.__init__(self) | 41 | MultiProcessCache.__init__(self) |
@@ -102,7 +102,7 @@ class BufferedLogger(Logger): | |||
102 | self.buffer = [] | 102 | self.buffer = [] |
103 | 103 | ||
104 | class PythonParser(): | 104 | class PythonParser(): |
105 | getvars = ("d.getVar", "bb.data.getVar", "data.getVar", "d.appendVar", "d.prependVar") | 105 | getvars = (".getVar", ".appendVar", ".prependVar") |
106 | containsfuncs = ("bb.utils.contains", "base_contains", "oe.utils.contains", "bb.utils.contains_any") | 106 | containsfuncs = ("bb.utils.contains", "base_contains", "oe.utils.contains", "bb.utils.contains_any") |
107 | execfuncs = ("bb.build.exec_func", "bb.build.exec_task") | 107 | execfuncs = ("bb.build.exec_func", "bb.build.exec_task") |
108 | 108 | ||
@@ -122,7 +122,7 @@ class PythonParser(): | |||
122 | 122 | ||
123 | def visit_Call(self, node): | 123 | def visit_Call(self, node): |
124 | name = self.called_node_name(node.func) | 124 | name = self.called_node_name(node.func) |
125 | if name in self.getvars or name in self.containsfuncs: | 125 | if name and name.endswith(self.getvars) or name in self.containsfuncs: |
126 | if isinstance(node.args[0], ast.Str): | 126 | if isinstance(node.args[0], ast.Str): |
127 | varname = node.args[0].s | 127 | varname = node.args[0].s |
128 | if name in self.containsfuncs and isinstance(node.args[1], ast.Str): | 128 | if name in self.containsfuncs and isinstance(node.args[1], ast.Str): |