mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
bitbake: toaster: Replace references to LayerSource models
Replace references to the now deprecated layersource models across Toaster with the new enums for layer source types. (Bitbake rev: 48c09c62eb979d840132e58144f0d81ffee675b1) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ffc78d329d
commit
ef627d0ab8
@@ -1287,6 +1287,14 @@ class LayerSource(object):
|
||||
(TYPE_BUILD, "build"),
|
||||
)
|
||||
|
||||
def types_dict():
|
||||
""" Turn the TYPES enums into a simple dictionary """
|
||||
dictionary = {}
|
||||
for key in LayerSource.__dict__:
|
||||
if "TYPE" in key:
|
||||
dictionary[key] = getattr(LayerSource, key)
|
||||
return dictionary
|
||||
|
||||
|
||||
class Layer(models.Model):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user