Skip to contentSkip to conversation

utils.py: use bb.utils.vercmp_string instead of bb.vercmp

PATCH New Andreas Oberritter 1 participant 1 message Feb 16, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 utils.py: use bb.utils.vercmp_string instead of bb.vercmp

* Fixes deprecation warning with BitBake master.

---
 lib/oe/utils.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/oe/utils.py +1 -1
index f7d2946..edd0e50 100644
@@ -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:
Signature · 1 line
1.7.2.3