diff options
| author | Christopher Larson <chris_larson@mentor.com> | 2011-11-04 14:59:46 -0400 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-10 11:44:29 +0000 |
| commit | ab3488264b1323a29842d12b575fa7e117115ebc (patch) | |
| tree | 29225ef240ee92e3170c883824c0327eb5cfaf0f /bitbake/lib/bb/data_smart.py | |
| parent | 7e436a98454275bea71cb511d13ad3665a1caba9 (diff) | |
| download | poky-ab3488264b1323a29842d12b575fa7e117115ebc.tar.gz | |
codeparser: silence non-literal warnings for vardeps
If the vardeps flag is not None, we now silence the warnings about
non-literal usage for that variable.
(Bitbake rev: e724b9f417d1baf898f5afc6376c73c1a2ad8db9)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/data_smart.py')
| -rw-r--r-- | bitbake/lib/bb/data_smart.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py index 44369ed82d..072f4033a0 100644 --- a/bitbake/lib/bb/data_smart.py +++ b/bitbake/lib/bb/data_smart.py | |||
| @@ -68,8 +68,14 @@ class VariableParse: | |||
| 68 | code = match.group()[3:-1] | 68 | code = match.group()[3:-1] |
| 69 | codeobj = compile(code.strip(), self.varname or "<expansion>", "eval") | 69 | codeobj = compile(code.strip(), self.varname or "<expansion>", "eval") |
| 70 | 70 | ||
| 71 | parser = bb.codeparser.PythonParser(self.varname) | 71 | parser = bb.codeparser.PythonParser(self.varname, logger) |
| 72 | parser.parse_python(code) | 72 | parser.parse_python(code) |
| 73 | if self.varname: | ||
| 74 | vardeps = self.d.getVarFlag(self.varname, "vardeps", True) | ||
| 75 | if vardeps is None: | ||
| 76 | parser.log.flush() | ||
| 77 | else: | ||
| 78 | parser.log.flush() | ||
| 73 | self.references |= parser.references | 79 | self.references |= parser.references |
| 74 | self.execs |= parser.execs | 80 | self.execs |= parser.execs |
| 75 | 81 | ||
