diff options
Diffstat (limited to 'meta/classes/recipe_sanity.bbclass')
-rw-r--r-- | meta/classes/recipe_sanity.bbclass | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/meta/classes/recipe_sanity.bbclass b/meta/classes/recipe_sanity.bbclass index 61e07bf043..63e9e7ff23 100644 --- a/meta/classes/recipe_sanity.bbclass +++ b/meta/classes/recipe_sanity.bbclass | |||
@@ -55,7 +55,6 @@ def can_use_autotools_base(cfgdata, d): | |||
55 | if cfg.find(i) != -1: | 55 | if cfg.find(i) != -1: |
56 | return False | 56 | return False |
57 | 57 | ||
58 | import os | ||
59 | for clsfile in d.getVar("__inherit_cache", 0): | 58 | for clsfile in d.getVar("__inherit_cache", 0): |
60 | (base, _) = os.path.splitext(os.path.basename(clsfile)) | 59 | (base, _) = os.path.splitext(os.path.basename(clsfile)) |
61 | if cfg.find("%s_do_configure" % base) != -1: | 60 | if cfg.find("%s_do_configure" % base) != -1: |
@@ -146,9 +145,7 @@ do_recipe_sanity_all () { | |||
146 | addtask recipe_sanity_all after do_recipe_sanity | 145 | addtask recipe_sanity_all after do_recipe_sanity |
147 | 146 | ||
148 | python recipe_sanity_eh () { | 147 | python recipe_sanity_eh () { |
149 | from bb.event import getName | 148 | if bb.event.getName(e) != "ConfigParsed": |
150 | |||
151 | if getName(e) != "ConfigParsed": | ||
152 | return | 149 | return |
153 | 150 | ||
154 | d = e.data | 151 | d = e.data |