diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-28 17:38:15 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-02 17:23:30 +0000 |
commit | 8a24f2d3b735bbc59ca4a09670cabbadb1868c1a (patch) | |
tree | f057f805d4d8ec5957288256e6b8aee8a9a1c0fb /lib/bb/codeparser.py | |
parent | 7413e0fa4dca9571ea98f32dab87d4fd60bc8de9 (diff) | |
download | bitbake-8a24f2d3b735bbc59ca4a09670cabbadb1868c1a.tar.gz |
codeparser: Fix var_execs to append to execs, not references
When using the "execs" information in new code, it became clear that
the returned data was incorrect and there were missing exec'd functions.
This corrects the error and changes one of the test results to match
the correct behaviour.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/codeparser.py')
-rw-r--r-- | lib/bb/codeparser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/codeparser.py b/lib/bb/codeparser.py index 62b6cf9e3..a50b9f268 100644 --- a/lib/bb/codeparser.py +++ b/lib/bb/codeparser.py @@ -186,7 +186,7 @@ class PythonParser(): if n.__class__.__name__ == "Call": self.visit_Call(n) - self.references.update(self.var_execs) + self.execs.update(self.var_execs) codeparsercache.pythoncacheextras[h] = {} codeparsercache.pythoncacheextras[h]["refs"] = self.references |