aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2011-02-16 11:06:20 +0000
committerMartin Jansa <Martin.Jansa@gmail.com>2011-04-22 19:41:08 +0200
commit54616d252e05d87bb23af9b9c67d4640f4caad7a (patch)
tree3d3ae7701929468f631722aa117f15d1e96a6372
parent34f71f238c9e64aa08fb0b0d222a4faca0d71267 (diff)
downloadopenembedded-54616d252e05d87bb23af9b9c67d4640f4caad7a.zip
openembedded-54616d252e05d87bb23af9b9c67d4640f4caad7a.tar.gz
openembedded-54616d252e05d87bb23af9b9c67d4640f4caad7a.tar.bz2
utils.py: use bb.utils.vercmp_string instead of bb.vercmp
* Fixes deprecation warning with BitBake master. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> CC: Chris Larson <chris_larson@mentor.com> Signed-off-by: Tom Rini <tom_rini@mentor.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--lib/oe/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oe/utils.py b/lib/oe/utils.py
index f7d2946..edd0e50 100644
--- a/lib/oe/utils.py
+++ b/lib/oe/utils.py
@@ -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: