summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastermain/management/commands/buildslist.py
blob: cad987fd93d06e6a050e086bde5788a5ddfb41be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from django.core.management.base import NoArgsCommand, CommandError
from orm.models import Build
import os



class Command(NoArgsCommand):
    args    = ""
    help    = "Lists current builds"

    def handle_noargs(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()]))
OpenPOWER on IntegriCloud