Signed-off-by: Chris Larson <chris_larson@mentor.com>
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
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():