[bitbake-devel] commit 6c3281a14 / set_context broken?

Rasmus Villemoes rasmus.villemoes at prevas.dk
Tue Jul 10 09:31:13 UTC 2018


AFAICT, set_context in lib/bb/utils.py doesn't actually set the
module-global _context variable, but just assigns to function-local
variable by the same name. Hence it is effectively a no-op.

The python fix would be to add a "global _context" declaration, but
since things have apparently worked for 5 years, perhaps one can simply
delete set_context and remove the calls?

Rasmus



More information about the bitbake-devel mailing list