diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /bitbake/lib/toaster/orm/management/commands/lsupdates.py | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
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() | ||