From eb8dc40360f0cfef56fb6947cc817a547d6d9bc6 Mon Sep 17 00:00:00 2001 From: Dave Cobbley Date: Tue, 14 Aug 2018 10:05:37 -0700 Subject: [Subtree] Removing import-layers directory As part of the move to subtrees, need to bring all the import layers content to the top level. Change-Id: I4a163d10898cbc6e11c27f776f60e1a470049d8f Signed-off-by: Dave Cobbley Signed-off-by: Brad Bishop --- .../toaster/toastermain/management/commands/buildslist.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 poky/bitbake/lib/toaster/toastermain/management/commands/buildslist.py (limited to 'poky/bitbake/lib/toaster/toastermain/management/commands/buildslist.py') diff --git a/poky/bitbake/lib/toaster/toastermain/management/commands/buildslist.py b/poky/bitbake/lib/toaster/toastermain/management/commands/buildslist.py new file mode 100644 index 000000000..70b5812d9 --- /dev/null +++ b/poky/bitbake/lib/toaster/toastermain/management/commands/buildslist.py @@ -0,0 +1,13 @@ +from django.core.management.base import BaseCommand, CommandError +from orm.models import Build +import os + + + +class Command(BaseCommand): + args = "" + help = "Lists current builds" + + def handle(self,**options): + for b in Build.objects.all(): + print("%d: %s %s %s" % (b.pk, b.machine, b.distro, ",".join([x.target for x in b.target_set.all()]))) -- cgit v1.2.1