summaryrefslogtreecommitdiff
path: root/meta/classes/sanity.bbclass
diff options
context:
space:
mode:
authorDexuan Cui <dexuan.cui@intel.com>2011-06-19 19:50:46 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-28 14:00:02 +0100
commit547f4ea9ac4be2e656f846e658df99b0ecff7a29 (patch)
tree1cafb3a97e039f22ea970b3a3264a9941fd44066 /meta/classes/sanity.bbclass
parent8a247573b85db3099db48580a149df3197e9cccd (diff)
downloadopenembedded-core-547f4ea9ac4be2e656f846e658df99b0ecff7a29.tar.gz
openembedded-core-547f4ea9ac4be2e656f846e658df99b0ecff7a29.tar.bz2
openembedded-core-547f4ea9ac4be2e656f846e658df99b0ecff7a29.tar.xz
openembedded-core-547f4ea9ac4be2e656f846e658df99b0ecff7a29.zip
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 <dexuan.cui@intel.com>
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r--meta/classes/sanity.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index fc005aa90..d296c861b 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' )