diff options
Diffstat (limited to 'yocto-poky/bitbake/lib/toaster/orm/management/commands')
-rw-r--r-- | yocto-poky/bitbake/lib/toaster/orm/management/commands/__init__.py | 0 | ||||
-rw-r--r-- | yocto-poky/bitbake/lib/toaster/orm/management/commands/lsupdates.py | 12 |
2 files changed, 12 insertions, 0 deletions
diff --git a/yocto-poky/bitbake/lib/toaster/orm/management/commands/__init__.py b/yocto-poky/bitbake/lib/toaster/orm/management/commands/__init__.py new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/yocto-poky/bitbake/lib/toaster/orm/management/commands/__init__.py diff --git a/yocto-poky/bitbake/lib/toaster/orm/management/commands/lsupdates.py b/yocto-poky/bitbake/lib/toaster/orm/management/commands/lsupdates.py new file mode 100644 index 000000000..75e9513fc --- /dev/null +++ b/yocto-poky/bitbake/lib/toaster/orm/management/commands/lsupdates.py @@ -0,0 +1,12 @@ +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() |