diff options
Diffstat (limited to 'bitbake/lib/toaster/toastermain/management/commands/buildslist.py')
-rw-r--r-- | bitbake/lib/toaster/toastermain/management/commands/buildslist.py | 13 |
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 0000000000..cad987fd93 --- /dev/null +++ b/bitbake/lib/toaster/toastermain/management/commands/buildslist.py | |||
@@ -0,0 +1,13 @@ | |||
1 | from django.core.management.base import NoArgsCommand, CommandError | ||
2 | from orm.models import Build | ||
3 | import os | ||
4 | |||
5 | |||
6 | |||
7 | class 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()])) | ||