[oe-commits] Andreas Oberritter : utils.py: use bb.utils.vercmp_string instead of bb. vercmp
git version control
git at git.openembedded.org
Fri Feb 18 21:44:15 UTC 2011
Module: openembedded.git
Branch: trini/simplify-target-flags
Commit: a07e7b983aae3a03a69155cacda12eebf384153b
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=a07e7b983aae3a03a69155cacda12eebf384153b
Author: Andreas Oberritter <obi at opendreambox.org>
Date: Wed Feb 16 11:06:20 2011 +0000
utils.py: use bb.utils.vercmp_string instead of bb.vercmp
* Fixes deprecation warning with BitBake master.
Signed-off-by: Andreas Oberritter <obi at opendreambox.org>
CC: Chris Larson <chris_larson at mentor.com>
Signed-off-by: Tom Rini <tom_rini at mentor.com>
---
lib/oe/utils.py | 2 +-
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:
More information about the Openembedded-commits
mailing list