blob: 70b5812d9895b7a43a4efc0616a8f58c8d33208e [file] [log] [blame]
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()])))