diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-10 09:52:13 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-02 09:55:51 +0100 |
commit | 674fa8dc46dc89b608a6d6fb83f6db2d348dd564 (patch) | |
tree | c959cc5077b6f6a9e8153524aa31e051182ce259 /bitbake/lib | |
parent | 5b13c1d8ab3839cb476f0bbcac0ac3894be32391 (diff) | |
download | poky-674fa8dc46dc89b608a6d6fb83f6db2d348dd564.tar.gz |
bitbake: build: Match markup to real function name
The point of the injected text is to identify where the function comes from. Using
the correct function name would therefore be better.
(Bitbake rev: 7919f1f94e15bb5d3d124062bdcfdbe44aceb81a)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 30c6ff8551c235254ab90663ab88f66bb0c71edb)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/build.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 23b6ee455f..fa22a1b47f 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
@@ -290,8 +290,8 @@ def exec_func_python(func, d, runfile, cwd=None): | |||
290 | lineno = int(d.getVarFlag(func, "lineno", False)) | 290 | lineno = int(d.getVarFlag(func, "lineno", False)) |
291 | bb.methodpool.insert_method(func, text, fn, lineno - 1) | 291 | bb.methodpool.insert_method(func, text, fn, lineno - 1) |
292 | 292 | ||
293 | comp = utils.better_compile(code, func, "exec_python_func() autogenerated") | 293 | comp = utils.better_compile(code, func, "exec_func_python() autogenerated") |
294 | utils.better_exec(comp, {"d": d}, code, "exec_python_func() autogenerated") | 294 | utils.better_exec(comp, {"d": d}, code, "exec_func_python() autogenerated") |
295 | finally: | 295 | finally: |
296 | bb.debug(2, "Python function %s finished" % func) | 296 | bb.debug(2, "Python function %s finished" % func) |
297 | 297 | ||