Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] lib/oe/utils.py: use bb.utils.vercmp_string
@ 2012-02-23 20:46 Andreas Oberritter
  2012-02-23 23:51 ` Richard Purdie
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Oberritter @ 2012-02-23 20:46 UTC (permalink / raw)
  To: openembedded-core

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>
---
 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:
-- 
1.7.5.4




^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-24  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-23 20:46 [PATCH] lib/oe/utils.py: use bb.utils.vercmp_string Andreas Oberritter
2012-02-23 23:51 ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox