diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-08-08 15:03:03 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-29 13:56:49 +0100 |
commit | 234226b9055a3b23addcdaa7a77812dc7aa79134 (patch) | |
tree | 979683201cb4f16cc9937aa30dadcf492edb442a /bitbake/lib/toaster/orm/management/commands/lsupdates.py | |
parent | 10019a652f2894f8782cc9281c980edad701822a (diff) | |
download | poky-234226b9055a3b23addcdaa7a77812dc7aa79134.tar.gz |
bitbake: toaster: update orm models for layerindex compatibility
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>
Diffstat (limited to 'bitbake/lib/toaster/orm/management/commands/lsupdates.py')
-rw-r--r-- | bitbake/lib/toaster/orm/management/commands/lsupdates.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/orm/management/commands/lsupdates.py b/bitbake/lib/toaster/orm/management/commands/lsupdates.py new file mode 100644 index 0000000000..75e9513fca --- /dev/null +++ b/bitbake/lib/toaster/orm/management/commands/lsupdates.py | |||
@@ -0,0 +1,12 @@ | |||
1 | from django.core.management.base import NoArgsCommand, CommandError | ||
2 | from orm.models import LayerSource | ||
3 | import os | ||
4 | |||
5 | class Command(NoArgsCommand): | ||
6 | args = "" | ||
7 | help = "Updates locally cached information from all LayerSources" | ||
8 | |||
9 | |||
10 | def handle_noargs(self, **options): | ||
11 | for ls in LayerSource.objects.all(): | ||
12 | ls.update() | ||