aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Laplante <chris.laplante@agilent.com>2020-07-27 19:24:33 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-07-28 16:53:54 +0100
commit91b809a0902ffd42be4edf7f0a7d25e6d354d822 (patch)
treefcf0ada318be93faf18310293b605706dda8bc56
parentba0472a672eacbbbb2295252a0d2056d3399c6a9 (diff)
downloadbitbake-master.tar.gz
bitbake-master.tar.bz2
bitbake-master.zip
build: create_progress_handler: fix calling 'get' on NoneTypeHEADmaster-nextmaster
Just use the |resolve| function which already takes care of it. Signed-off-by: Chris Laplante <chris.laplante@agilent.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py
index cb2e75b1..977b02fc 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -346,7 +346,7 @@ def create_progress_handler(func, progress, logfile, d):
cls_obj = functools.reduce(resolve, cls.split("."), bb.utils._context)
if not cls_obj:
# Fall-back on __builtins__
- cls_obj = functools.reduce(lambda x, y: x.get(y), cls.split("."), __builtins__)
+ cls_obj = functools.reduce(resolve, cls.split("."), __builtins__)
if cls_obj:
return cls_obj(d, outfile=logfile, otherargs=otherargs)
bb.warn('%s: unknown custom progress handler in task progress varflag value "%s", ignoring' % (func, cls))