1# 2# SPDX-License-Identifier: GPL-2.0-only 3# 4 5from django.core.management.base import BaseCommand 6from orm.models import Build 7 8 9 10class Command(BaseCommand): 11 args = "" 12 help = "Lists current builds" 13 14 def handle(self,**options): 15 for b in Build.objects.all(): 16 print("%d: %s %s %s" % (b.pk, b.machine, b.distro, ",".join([x.target for x in b.target_set.all()]))) 17