diff options
Diffstat (limited to 'meta')
-rw-r--r-- | 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 fc005aa90d..d296c861b2 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -42,6 +42,10 @@ def check_sanity_version_change(): | |||
42 | return "" | 42 | return "" |
43 | 43 | ||
44 | def check_pseudo_wrapper(): | 44 | def check_pseudo_wrapper(): |
45 | import sys | ||
46 | if not sys.argv[0].endswith('/bitbake'): | ||
47 | return "" | ||
48 | |||
45 | import subprocess as sub | 49 | import subprocess as sub |
46 | # Check if bitbake wrapper is being used | 50 | # Check if bitbake wrapper is being used |
47 | pseudo_build = os.environ.get( 'PSEUDO_BUILD' ) | 51 | pseudo_build = os.environ.get( 'PSEUDO_BUILD' ) |