mirror of
git://git.yoctoproject.org/poky
synced 2026-10-01 02:01:47 +00:00
removed unused imports which made the code harder to read, and slightly but less efficient (Bitbake rev: 4367692a932ac135c5aa4f9f2a4e4f0150f76697) Signed-off-by: Frazer Clews <frazer.clews@codethink.co.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
17 lines
396 B
Python
17 lines
396 B
Python
#
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
|
|
from django.core.management.base import BaseCommand
|
|
from orm.models import Build
|
|
|
|
|
|
|
|
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()])))
|