summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/sanity.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass
index 1fd5fbb216..575530aa84 100644
--- a/classes/sanity.bbclass
+++ b/classes/sanity.bbclass
@@ -30,7 +30,9 @@ def check_sanity(e):
try:
from distutils.version import LooseVersion
except ImportError:
- def LooseVersion(v): print "WARNING: sanity.bbclass can't compare versions without python-distutils"; return 1
+ def LooseVersion(v):
+ bb.msg.warn(None, "sanity.bbclass can't compare versions without python-distutils")
+ return 1
import commands
# Check the bitbake version meets minimum requirements
@@ -38,7 +40,6 @@ def check_sanity(e):
if not minversion:
# Hack: BB_MIN_VERSION hasn't been parsed yet so return
# and wait for the next call
- print "Foo %s" % minversion
return
if 0 == os.getuid():