summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
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-29 10:13:02 +0100
commitef0ca299d6dd3f6d9bbb8eccb391703806303102 (patch)
tree175e255312674f370b9417ea73b3b924217d3088 /bitbake/lib
parentd50a04c3042e4f29f832c64237d44a5f3c9bc549 (diff)
downloadpoky-ef0ca299d6dd3f6d9bbb8eccb391703806303102.tar.gz
bitbake: build: create_progress_handler: fix calling 'get' on NoneType
Just use the |resolve| function which already takes care of it. (Bitbake rev: 91b809a0902ffd42be4edf7f0a7d25e6d354d822) Signed-off-by: Chris Laplante <chris.laplante@agilent.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index cb2e75b145..977b02fc63 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -346,7 +346,7 @@ def create_progress_handler(func, progress, logfile, d):
346 cls_obj = functools.reduce(resolve, cls.split("."), bb.utils._context) 346 cls_obj = functools.reduce(resolve, cls.split("."), bb.utils._context)
347 if not cls_obj: 347 if not cls_obj:
348 # Fall-back on __builtins__ 348 # Fall-back on __builtins__
349 cls_obj = functools.reduce(lambda x, y: x.get(y), cls.split("."), __builtins__) 349 cls_obj = functools.reduce(resolve, cls.split("."), __builtins__)
350 if cls_obj: 350 if cls_obj:
351 return cls_obj(d, outfile=logfile, otherargs=otherargs) 351 return cls_obj(d, outfile=logfile, otherargs=otherargs)
352 bb.warn('%s: unknown custom progress handler in task progress varflag value "%s", ignoring' % (func, cls)) 352 bb.warn('%s: unknown custom progress handler in task progress varflag value "%s", ignoring' % (func, cls))