forked from brl/citadel
14 lines
375 B
Python
14 lines
375 B
Python
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()])))
|