[OE-core] [PATCH] uboot-config: check UBOOT_CONFIG variable, not flags, for error conditions
Christopher Larson
kergoth at gmail.com
Fri Jun 9 22:42:28 UTC 2017
On Fri, Jun 9, 2017 at 11:41 AM, Denys Dmytriyenko <denis at denix.org> wrote:
> + ubootconfig = (d.getVar('UBOOT_CONFIG') or "").split()
>
> - if not ubootmachine and not ubootconfigflags:
> + if not ubootmachine and len(ubootconfig) == 0:
>
There’s no need for len() here, just `if not ubootmachine and not
ubootconfig:` should do, since a string is falsy when it’s empty.
--
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170609/fe900eff/attachment-0002.html>
More information about the Openembedded-core
mailing list