mirror of
https://git.yoctoproject.org/poky
synced 2026-02-10 10:43:02 +01:00
We add a ToasterSettings table that will keep installation-wide settings. We update the models for the layer-related data storage to make them compatible with the layerindex application API. We add a LayerSource class that can update local data from a LayerIndex-like compatible API. Adding a command line option to perform information update from all upstream layer sources. Fair warning - there is no backward migration from 0013. (Bitbake rev: 89e13579e1b44b738f10fadec8454aa0e6f073af) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 lines
345 B
Python
13 lines
345 B
Python
from django.core.management.base import NoArgsCommand, CommandError
|
|
from orm.models import LayerSource
|
|
import os
|
|
|
|
class Command(NoArgsCommand):
|
|
args = ""
|
|
help = "Updates locally cached information from all LayerSources"
|
|
|
|
|
|
def handle_noargs(self, **options):
|
|
for ls in LayerSource.objects.all():
|
|
ls.update()
|