summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2012-02-23 21:46:13 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-23 22:33:29 +0000
commit925a9729afaa9cd498661f7f363112c974b023a2 (patch)
tree009a4d4f253d49a572e1c0e9c6256c190ee912ff
parent55f72b98f606c1554eb6edd151292ffdfddf1384 (diff)
downloadopenembedded-core-925a9729afaa9cd498661f7f363112c974b023a2.tar.gz
openembedded-core-925a9729afaa9cd498661f7f363112c974b023a2.tar.bz2
openembedded-core-925a9729afaa9cd498661f7f363112c974b023a2.tar.xz
openembedded-core-925a9729afaa9cd498661f7f363112c974b023a2.zip
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 <obi@opendreambox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oe/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index 95daace6c..02d544294 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: