From: Andreas Oberritter Date: Thu, 23 Feb 2012 20:46:13 +0000 (+0100) Subject: lib/oe/utils.py: use bb.utils.vercmp_string X-Git-Tag: 2015-4~11726 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=925a9729afaa9cd498661f7f363112c974b023a2;p=openembedded-core.git lib/oe/utils.py: use bb.utils.vercmp_string Fixes the following warning: | WARNING: .../meta/lib/oe/utils.py:31: DeprecationWarning: Call to deprecated function bb.vercmp_string: Please use bb.utils.vercmp_string instead. | result = bb.vercmp(d.getVar(variable,True), checkvalue) Signed-off-by: Andreas Oberritter Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py index 95daace6c6..02d5442940 100644 --- a/meta/lib/oe/utils.py +++ b/meta/lib/oe/utils.py @@ -28,7 +28,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(d.getVar(variable,True), checkvalue) + result = bb.utils.vercmp_string(d.getVar(variable,True), checkvalue) if result <= 0: return truevalue else: