]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
systemd: change pni-names logic to something less confusing
authorKoen Kooi <koen.kooi@oss.qualcomm.com>
Tue, 9 Sep 2025 11:24:48 +0000 (13:24 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Sep 2025 09:45:08 +0000 (10:45 +0100)
commit52ea4612f9262a9e607fb3eee08906ec687197ee
tree6017d824d600c5c5bc474bc152f5ea20be074f38
parent46e0b41cc78d77900286c198da81159e63c2cb63
systemd: change pni-names logic to something less confusing

Using bb.utils.contains in negative logic leads to either overly verbose
or plain confusing code, so harness the power of Ross and Antonin to
make this less verbose and slightly clearer.

This moves the negative logic from the inline python ('true if not') to
bash ('if !').

Signed-off-by: Koen Kooi <koen.kooi@oss.qualcomm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd_257.8.bb