summaryrefslogtreecommitdiffstats
path: root/meta/classes/sanity.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r--meta/classes/sanity.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 601ef1fb70..17420a8767 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -367,7 +367,9 @@ def check_sanity(sanity_data):
367 try: 367 try:
368 from distutils.version import LooseVersion 368 from distutils.version import LooseVersion
369 except ImportError: 369 except ImportError:
370 def LooseVersion(v): print "WARNING: sanity.bbclass can't compare versions without python-distutils"; return 1 370 def LooseVersion(v):
371 print("WARNING: sanity.bbclass can't compare versions without python-distutils")
372 return 1
371 import commands 373 import commands
372 374
373 # Check the bitbake version meets minimum requirements 375 # Check the bitbake version meets minimum requirements
@@ -375,7 +377,7 @@ def check_sanity(sanity_data):
375 if not minversion: 377 if not minversion:
376 # Hack: BB_MIN_VERSION hasn't been parsed yet so return 378 # Hack: BB_MIN_VERSION hasn't been parsed yet so return
377 # and wait for the next call 379 # and wait for the next call
378 print "Foo %s" % minversion 380 print("Foo %s" % minversion)
379 return 381 return
380 382
381 if 0 == os.getuid(): 383 if 0 == os.getuid():