[OE-core] [PATCH V2 2/2] populate_sdk_base: avoid executing empty function

Christopher Larson clarson at kergoth.com
Fri Apr 24 15:08:49 UTC 2015


On Fri, Apr 24, 2015 at 1:59 AM, Chen Qi <Qi.Chen at windriver.com> wrote:

> -    bb.build.exec_func(d.getVar("SDK_PACKAGING_FUNC", True), d)
> +    sdk_packaging_func = d.getVar("SDK_PACKAGING_FUNC", True) or ""
> +    if sdk_packaging_func.strip():
> +        bb.build.exec_func(d.getVar("SDK_PACKAGING_FUNC", True), d)
>  }
>

You just put the value in a variable, why are you doing a second getvar
instead of using it?
-- 
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/openembedded-core/attachments/20150424/eb653968/attachment-0002.html>


More information about the Openembedded-core mailing list