diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
commit | c527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch) | |
tree | bb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /bitbake/lib/toaster/toastermain/management/commands/buildslist.py | |
download | poky-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
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()])) | ||