This patch eliminates the warning "not been run using the bitbake wrapper..."
when we run bitbake-layers.

Thanks Paul Eggleton for suggesting doing this in sanity.bbclass.

Signed-off-by: Dexuan Cui <[email protected]>
---
 meta/classes/sanity.bbclass |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index fc005aa..d296c86 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' )
-- 
1.7.1


_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to