[OE-core] [PATCH 1/2] libproxy: replace PACKAGECONFIG equivalent with the real thing

Burton, Ross ross.burton at intel.com
Mon Feb 8 22:56:29 UTC 2016


On 8 February 2016 at 20:34, Andre McCurdy <armccurdy at gmail.com> wrote:

> '' if incompatible_license_contains('GPLv3', 'x', '', d) == 'x' or
> bb.utils.contains('DISTRO_FEATURES', 'x11', 'x', '', d) == '' else 'gnome'
> } \
>

Instead of returning 'x' or '' and then doing string comparisons, why not
just return True or False and let if/or/else do the right thing?

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160208/c233ea56/attachment-0002.html>


More information about the Openembedded-core mailing list