aboutsummaryrefslogtreecommitdiffstats
path: root/lib/srtmain/management/commands/buildslist.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/srtmain/management/commands/buildslist.py')
-rw-r--r--lib/srtmain/management/commands/buildslist.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/srtmain/management/commands/buildslist.py b/lib/srtmain/management/commands/buildslist.py
new file mode 100644
index 00000000..70b5812d
--- /dev/null
+++ b/lib/srtmain/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()])))