From: Dexuan Cui Date: Sun, 19 Jun 2011 11:50:46 +0000 (+0800) Subject: sanity.bbclass: only run check_pseudo_wrapper for bitbake X-Git-Tag: 2011-1~987 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=547f4ea9ac4be2e656f846e658df99b0ecff7a29;p=openembedded-core.git sanity.bbclass: only run check_pseudo_wrapper for bitbake This patch eliminates the warning "not been run using the bitbake wrapper..." when we run bitbake-layers. Signed-off-by: Dexuan Cui --- diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index fc005aa90d..d296c861b2 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass @@ -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' )