diff options
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 883ecf4e50..b5c864354d 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
@@ -974,6 +974,8 @@ class LayerIndexLayerSource(LayerSource): | |||
974 | ro.file_path = ri['filepath'] + "/" + ri['filename'] | 974 | ro.file_path = ri['filepath'] + "/" + ri['filename'] |
975 | if 'inherits' in ri: | 975 | if 'inherits' in ri: |
976 | ro.is_image = 'image' in ri['inherits'].split() | 976 | ro.is_image = 'image' in ri['inherits'].split() |
977 | else: # workaround for old style layer index | ||
978 | ro.is_image = "-image-" in ri['pn'] | ||
977 | ro.save() | 979 | ro.save() |
978 | except IntegrityError as e: | 980 | except IntegrityError as e: |
979 | logger.debug("Failed saving recipe, ignoring: %s (%s:%s)" % (e, ro.layer_version, ri['filepath']+"/"+ri['filename'])) | 981 | logger.debug("Failed saving recipe, ignoring: %s (%s:%s)" % (e, ro.layer_version, ri['filepath']+"/"+ri['filename'])) |