mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-05 05:04:46 +02:00
layerindex/update_layer.py: enable classes-global,-recipe
Add support for the new BBClassGlobal and BBClassRecipe sub-classes. [YOCTO #15238] Signed-off-by: Tim Orling <tim.orling@konsulko.com>
This commit is contained in:
parent
38ec722128
commit
ac0ef0540a
|
@ -296,7 +296,10 @@ def main():
|
|||
|
||||
utils.setup_django()
|
||||
import settings
|
||||
from layerindex.models import LayerItem, LayerBranch, LayerDependency, Recipe, RecipeFileDependency, Machine, Distro, BBAppend, BBClass, IncFile
|
||||
from layerindex.models import (LayerItem, LayerBranch, LayerDependency,
|
||||
Recipe, RecipeFileDependency, Machine,
|
||||
Distro, BBAppend, BBClass,
|
||||
BBClassGlobal, BBClassRecipe, IncFile)
|
||||
from django.db import transaction
|
||||
|
||||
logger.setLevel(options.loglevel)
|
||||
|
@ -644,6 +647,11 @@ def main():
|
|||
update_distro_conf_file(os.path.join(repodir, path), distro, config_data_copy)
|
||||
distro.save()
|
||||
elif typename == 'bbclass':
|
||||
if '/classes-global/' in path:
|
||||
bbclass = BBClassGlobal()
|
||||
elif '/classes-recipe/' in path:
|
||||
bbclass = BBClassRecipe()
|
||||
else:
|
||||
bbclass = BBClass()
|
||||
bbclass.layerbranch = layerbranch
|
||||
bbclass.name = filename
|
||||
|
@ -765,6 +773,11 @@ def main():
|
|||
update_distro_conf_file(fullpath, distro, config_data_copy)
|
||||
distro.save()
|
||||
elif typename == 'bbclass':
|
||||
if '/classes-global/' in fullpath:
|
||||
bbclass = BBClassGlobal()
|
||||
elif '/classes-recipe/' in fullpath:
|
||||
bbclass = BBClassRecipe()
|
||||
else:
|
||||
bbclass = BBClass()
|
||||
bbclass.layerbranch = layerbranch
|
||||
bbclass.name = filename
|
||||
|
|
Loading…
Reference in New Issue
Block a user