[OE-core] [PATCHv2] license: fix LICENSE_CREATE_PACKAGE to stay disabled by default

Chris Larson clarson at kergoth.com
Tue Jan 29 17:30:45 UTC 2013


On Tue, Jan 29, 2013 at 8:59 AM, Martin Jansa <martin.jansa at gmail.com>wrote:

> > We do have an existing mechanism for handling boolean variables in a sane
> > way, as an FYI.
> >
> > LICENSE_CREATE_PACKAGE[type] = "boolean"
> >
> > LICENSE_CREATE_PACKAGE = "1"
> > oe.data.typed_value(d, 'LICENSE_CREATE_PACKAGE') == True
> > LICENSE_CREATE_PACKAGE = "0"
> > oe.data.typed_value(d, 'LICENSE_CREATE_PACKAGE') == False
>
> I did the same and now it's failing with:
> AttributeError: 'str' object has no attribute 'getVarFlag'
>
> here is last version
> http://bpaste.net/show/73667/


Ah, I probably remembered the argument order for typed_value wrong :)
-- 
Christopher Larson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20130129/603188c7/attachment-0002.html>


More information about the Openembedded-core mailing list