]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
meta: simplify conditional operations with bb.utils.filter
authorJoão Marcos Costa <joaomarcos.costa@bootlin.com>
Mon, 27 Apr 2026 13:08:44 +0000 (15:08 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 29 Apr 2026 09:28:16 +0000 (10:28 +0100)
commitf38320c9646a90aca88e119e692136594f75230c
tree6520111389e5de30aded38d6f83c405a95cece4f
parent927b505c982ed7443aed348ca54b0073ac63d938
meta: simplify conditional operations with bb.utils.filter

Some recipes use bb.utils.contains to check for a string inside a
variable, and return the exact same string if true.

This can be simplified by a call to bb.utils.filter, since the result is
the same, and the inline is shorter.

Replace "bb.utils.contains(A, 'a', 'a', '', d)" by "bb.utils.filter(A, 'a', d)".

Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/recipes-connectivity/connman/connman_2.0.bb
meta/recipes-core/coreutils/coreutils_9.10.bb
meta/recipes-core/ovmf/ovmf_git.bb
meta/recipes-extended/at/at_3.2.5.bb
meta/recipes-graphics/libglvnd/libglvnd_1.7.0.bb
meta/recipes-graphics/waffle/waffle_1.8.1.bb
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb