[bitbake-devel] [PATCH 1/1] add a syntax to clear variable

Jérémy Rosen jeremy.rosen at smile.fr
Tue Aug 16 10:38:10 UTC 2016


As Christopher explained, this is an immediate operation.

I'll look into unit test, I've never looked into this so I'm not sure 
how they work...


On 15/08/2016 16:47, Christopher Larson wrote:
>
> On Mon, Aug 15, 2016 at 7:44 AM, Peter Kjellerstedt 
> <peter.kjellerstedt at axis.com <mailto:peter.kjellerstedt at axis.com>> wrote:
>
>     How will this interact with ?=, ??=, _append and _remove?
>
>     Shouldn't there be unit tests for this? It seems like it can easily
>     break and/or be broken by other changes.
>
>
> It's implemented as an immediate operation, so it'd happen long before 
> ??=, _append, or _remove are applied. ?= is also immediate, so isn't 
> relevant -- ?= before it would do nothing, as the unset would undo it, 
> and ?= after the unset would apply fine.
>
> I think that's the most sane approach for something like this. If you 
> want the operation postponed, you can use anonymous python for that. 
> Agreed re: unit tests, though.
> -- 
> Christopher Larson
> clarson at kergoth dot com
> Founder - BitBake, OpenEmbedded, OpenZaurus
> Maintainer - Tslib
> Senior Software Engineer, Mentor Graphics

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20160816/0ff89dc2/attachment-0002.html>


More information about the bitbake-devel mailing list