utils.py: use bb.utils.vercmp_string instead of bb.vercmp
PATCH 1/1 utils.py: use bb.utils.vercmp_string instead of bb.vercmp
* Fixes deprecation warning with BitBake master.
Signed-off-by Andreas Oberritter <[email protected]>
CC Chris Larson <[email protected]>
--- lib/oe/utils.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
lib/oe/utils.py +1 -1
@@ -35,7 +35,7 @@ def less_or_equal(variable, checkvalue, truevalue, falsevalue, d): return falsevalue def version_less_or_equal(variable, checkvalue, truevalue, falsevalue, d): - result = bb.vercmp(bb.data.getVar(variable,d,True), checkvalue) + result = bb.utils.vercmp_string(bb.data.getVar(variable,d,True), checkvalue) if result <= 0: return truevalue else:
Signature · 1 line
1.7.2.3