]> code.ossystems Code Review - openembedded-core.git/commitdiff
sanity.bbclass: only run check_pseudo_wrapper for bitbake
authorDexuan Cui <dexuan.cui@intel.com>
Sun, 19 Jun 2011 11:50:46 +0000 (19:50 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 28 Jun 2011 13:00:02 +0000 (14:00 +0100)
This patch eliminates the warning "not been run using the bitbake wrapper..."
when we run bitbake-layers.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
meta/classes/sanity.bbclass

index fc005aa90d15e269c83e1a9459727b14873aef57..d296c861b2f1d5f7241cdcfcae5878c5fae7c8fc 100644 (file)
@@ -42,6 +42,10 @@ def check_sanity_version_change():
     return ""
 
 def check_pseudo_wrapper():
+    import sys
+    if not sys.argv[0].endswith('/bitbake'):
+        return ""
+
     import subprocess as sub
     # Check if bitbake wrapper is being used
     pseudo_build = os.environ.get( 'PSEUDO_BUILD' )