diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/ui/buildinfohelper.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py index 2a9e0981c7..e4d2f1f5a4 100644 --- a/bitbake/lib/bb/ui/buildinfohelper.py +++ b/bitbake/lib/bb/ui/buildinfohelper.py | |||
@@ -845,10 +845,12 @@ class BuildInfoHelper(object): | |||
845 | recipe_info['bugtracker'] = event._depgraph['pn'][pn]['bugtracker'] | 845 | recipe_info['bugtracker'] = event._depgraph['pn'][pn]['bugtracker'] |
846 | recipe_info['file_path'] = file_name | 846 | recipe_info['file_path'] = file_name |
847 | recipe = self.orm_wrapper.get_update_recipe_object(recipe_info) | 847 | recipe = self.orm_wrapper.get_update_recipe_object(recipe_info) |
848 | recipe.is_image = False | ||
848 | if 'inherits' in event._depgraph['pn'][pn].keys(): | 849 | if 'inherits' in event._depgraph['pn'][pn].keys(): |
849 | recipe.is_image = True in map(lambda x: x.endswith('image.bbclass'), event._depgraph['pn'][pn]['inherits']) | 850 | for cls in event._depgraph['pn'][pn]['inherits']: |
850 | else: | 851 | if cls.endswith('/image.bbclass'): |
851 | recipe.is_image = False | 852 | recipe.is_image = True |
853 | break | ||
852 | if recipe.is_image: | 854 | if recipe.is_image: |
853 | for t in self.internal_state['targets']: | 855 | for t in self.internal_state['targets']: |
854 | if pn == t.target: | 856 | if pn == t.target: |