On Mon, Jun 29, 2015 at 12:10 PM, Ed Bartosh <[email protected]>
wrote:

> +    global _BITBAKE_VARS
> +
> +    if image not in _BITBAKE_VARS:
>

In general, I’d suggest using a cache class/object rather than globals,
similar to how it’s handled in bb.checksum, or a transparent LRU. Whenever
a cache is involved, it’s best to consider what its lifetime is.
Admittedly, wic isn’t long-running, but best not to get into bad habits.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to