]> code.ossystems Code Review - openembedded-core.git/commitdiff
lib/oe/utils.py: use bb.utils.vercmp_string
authorAndreas Oberritter <obi@opendreambox.org>
Thu, 23 Feb 2012 20:46:13 +0000 (21:46 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Feb 2012 22:33:29 +0000 (22:33 +0000)
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>
meta/lib/oe/utils.py

index 95daace6c6183c34cdba7c81249a6cadf73eb2a0..02d5442940678297911165a731e960ee6adabaa5 100644 (file)
@@ -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: