[OE-core] [PATCH] blacklist.bbclass: Avoid blacklist specific handle in base.bbclass

Otavio Salvador otavio at ossystems.com.br
Sat Aug 3 22:58:21 UTC 2013


On Sat, Aug 3, 2013 at 7:44 PM, Mario Domenech Goulart
<mario at ossystems.com.br> wrote:
...
>> +# Cope with PNBLACKLIST flags for multilib case
>> +addhandler blacklist_multilib_eventhandler
>> +blacklist_multilib_eventhandler[eventmask] = "bb.event.ConfigParsed"
>> +python blacklist_multilib_eventhandler() {
>> +    multilibs = e.data.getVar('MULTILIBS', True) or ""
>> +    if not multilibs:
>> +        return
>
> Is the `or ""' part necessary, given that `if not multilibs' would
> branch to return in case multilib is bound to a falsy value?  It looks
> redundant.

You're right. I just sent a v2 removing this code.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list