Skip to contentSkip to conversation

lib/oe/utils.py: use bb.utils.vercmp_string

PATCH Applied Andreas Oberritter 2 participants 2 messages Feb 23, 2012 – Feb 24, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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)

---
 meta/lib/oe/utils.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta/lib/oe/utils.py +1 -1
index 95daace..02d5442 100644
@@ -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:
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 9 lines · Andreas Oberritter

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)

---
 meta/lib/oe/utils.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Merged to master, thanks.

Richard