summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastermain/management/commands/buildslist.py
blob: 1ed20224d30bf7f85024ab61c23d9940190030a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#
# SPDX-License-Identifier: GPL-2.0-only
#

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()])))