summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
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:52:21 +0000
commit571c9c7980db53352f3f38027734b85b28f14a2e (patch)
tree1f203ebd377a69be59e1f3d4c073fc326ee9ee07 /meta/lib/oe
parent8fa33800efa530c765d85a520110285467ff29c2 (diff)
downloadpoky-571c9c7980db53352f3f38027734b85b28f14a2e.tar.gz
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) (From OE-Core rev: 925a9729afaa9cd498661f7f363112c974b023a2) Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-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 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):
28 return falsevalue 28 return falsevalue
29 29
30def version_less_or_equal(variable, checkvalue, truevalue, falsevalue, d): 30def version_less_or_equal(variable, checkvalue, truevalue, falsevalue, d):
31 result = bb.vercmp(d.getVar(variable,True), checkvalue) 31 result = bb.utils.vercmp_string(d.getVar(variable,True), checkvalue)
32 if result <= 0: 32 if result <= 0:
33 return truevalue 33 return truevalue
34 else: 34 else: