]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
oe/types: Allow boolean to accept an existing boolean
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 20 Jun 2018 23:14:31 +0000 (00:14 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Jun 2018 08:34:40 +0000 (09:34 +0100)
commit6cf9204d3bc55d4811ce112a1cd7c990b4199b93
tree0f28f7cb31542f652102f959967a5f24838ba1fe
parent160477e043751cf1fa3ddbd7825c64467a186a40
oe/types: Allow boolean to accept an existing boolean

Exception: TypeError: boolean accepts a string, not '<class 'bool'>

is a bit annoying if you pass in True/False. Tweak the function
to make it forgive that situation.

(From OE-Core rev: 147f5a665fe5073027d92e4acac631f15f08f79f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/types.py