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.

(From OE-Core rev: 547f4ea9ac4be2e656f846e658df99b0ecff7a29)

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Dexuan Cui 2011-06-19 19:50:46 +08:00 committed by Richard Purdie
parent df01b5032e
commit d8f4a8bd1c
1 changed files with 4 additions and 0 deletions

View 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' )