poky/bitbake/lib
Peter Kjellerstedt 2fc0a78176 bitbake: tinfoil: Do not fail when logging is disabled and full config is used
If Tinfoil is initialized with setup_logging = False and
Tinfoil.prepare() is called with config_only = False, then it fails
because self.localhandlers is only initialized when
setup_logging = True.

This is seen with, e.g., `bitbake-getvar -q -r busybox MACHINE`:

  Traceback (most recent call last):
    File ".../bitbake/bin/bitbake-getvar", line 41, in <module>
      tinfoil.prepare(quiet=2)
    File ".../bitbake/lib/bb/tinfoil.py", line 390, in prepare
      for handler in self.localhandlers:
  AttributeError: 'Tinfoil' object has no attribute 'localhandlers'.
  Did you mean: 'oldhandlers'?

(Bitbake rev: e452c6d7ba5bb4f78a1d2bfb742794efdf171dbc)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 616101ddb630e2c9975022068b52a87c4cf647f6)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2023-11-09 04:41:17 -10:00
..
bb bitbake: tinfoil: Do not fail when logging is disabled and full config is used 2023-11-09 04:41:17 -10:00
bblayers bitbake: bitbake: Add copyright headers where missing 2022-10-11 21:57:28 +01:00
bs4 bitbake: lib/bs4/testing.py: fix bs4 testing 2020-05-05 13:22:29 +01:00
hashserv bitbake: hashserv: Improve behaviour for better determinism/sstate reuse 2021-10-11 11:00:06 +01:00
layerindexlib bitbake: lib: Replace remaining "blacklist"/"whitelist" usage 2022-02-21 23:37:26 +00:00
ply bitbake: utils/ply: Update md5 to better report errors with hashlib 2023-02-17 15:05:08 +00:00
progressbar bitbake: bitbake: Add initial pass of SPDX license headers to source code 2019-05-04 10:44:04 +01:00
prserv bitbake: bitbake: Add copyright headers where missing 2022-10-11 21:57:28 +01:00
simplediff
toaster bitbake: bitbake: Add copyright headers where missing 2022-10-11 21:57:28 +01:00
codegen.py bitbake: codegen: implement ast.NodeVisitor.visit_Constant 2021-10-14 22:37:43 +01:00
pyinotify.py bitbake: pyinotify.py: Simplify identification of which event has occurred 2022-04-14 09:48:33 +01:00