blob: 70b5812d9895b7a43a4efc0616a8f58c8d33208e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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()])))
|