summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastermain/management/commands/buildslist.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastermain/management/commands/buildslist.py')
-rw-r--r--bitbake/lib/toaster/toastermain/management/commands/buildslist.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastermain/management/commands/buildslist.py b/bitbake/lib/toaster/toastermain/management/commands/buildslist.py
new file mode 100644
index 0000000..cad987f
--- /dev/null
+++ b/bitbake/lib/toaster/toastermain/management/commands/buildslist.py
@@ -0,0 +1,13 @@
1from django.core.management.base import NoArgsCommand, CommandError
2from orm.models import Build
3import os
4
5
6
7class Command(NoArgsCommand):
8 args = ""
9 help = "Lists current builds"
10
11 def handle_noargs(self,**options):
12 for b in Build.objects.all():
13 print "%d: %s %s %s" % (b.pk, b.machine, b.distro, ",".join([x.target for x in b.target_set.all()]))