[oe-commits] Andreas Oberritter : lib/oe/utils.py: use bb.utils.vercmp_string
git at git.openembedded.org
git at git.openembedded.org
Thu Feb 23 22:38:55 UTC 2012
Module: openembedded-core.git
Branch: master
Commit: 925a9729afaa9cd498661f7f363112c974b023a2
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=925a9729afaa9cd498661f7f363112c974b023a2
Author: Andreas Oberritter <obi at opendreambox.org>
Date: Thu Feb 23 21:46:13 2012 +0100
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)
Signed-off-by: Andreas Oberritter <obi at opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/lib/oe/utils.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index 95daace..02d5442 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):
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:
More information about the Openembedded-commits
mailing list