[PATCH] utils.contains,_any: Fix description of return value
Jörg Sommer <[email protected]> Mon, 8 Jun 2026 16:39:54 +0200
| Newsgroups | org.openembedded.lists.bitbake-devel |
|---|---|
| Message-ID | <63bcd3253c3f7cb372c4e9a85f86473ffa1633f7.1780929593.git.joerg.sommer@navimatix.de> |
From: Jörg Sommer <[email protected]> Signed-off-by: Jörg Sommer <[email protected]> --- lib/bb/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/bb/utils.py b/lib/bb/utils.py index f03c950af..181082c95 100644 --- a/lib/bb/utils.py +++ b/lib/bb/utils.py @@ -1291,8 +1291,8 @@ def contains(variable, checkvalues, truevalue, falsevalue, d): not a subset of variable. - ``d``: the data store. - Returns ``True`` if the variable contains the values specified, ``False`` - otherwise. + Returns ``truevalue`` if the variable contains the values specified, + ``falsevalue`` otherwise. """ val = d.getVar(variable) @@ -1321,8 +1321,8 @@ def contains_any(variable, checkvalues, truevalue, falsevalue, d): not a subset of variable. - ``d``: the data store. - Returns ``True`` if the variable contains any of the values specified, - ``False`` otherwise. + Returns ``truevalue`` if the variable contains any of the values specified, + ``falsevalue`` otherwise. """ val = d.getVar(variable) if not val: -- 2.53.0