]> code.ossystems Code Review - openembedded-core.git/commit
image.bbclass: use max() instead of indexing booleans
authorRoss Burton <ross.burton@intel.com>
Tue, 12 Apr 2016 10:44:25 +0000 (11:44 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 13 Apr 2016 09:12:44 +0000 (10:12 +0100)
commit7ee49f8a41b4b5c48fd283ac2768564c7ebb5332
treeb70536f5089e844eb72b437e3f5f28c8d689ab7c
parent04556b33d5bf232ed4de14725cf94627f434131e
image.bbclass: use max() instead of indexing booleans

There's some code dotted around OE that uses (a, b)[foo < bar] instead of the
more idiomatic "test and a or b".  Or in this case, just max().

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/image.bbclass