mirror of
git://git.yoctoproject.org/poky
synced 2026-09-30 13:04:04 +00:00
This updates the print "" syntax to print() and fixes some exception handling syntax such that its compatible with python v2 and v3. (Bitbake rev: 58304fcce9727fd89564436771356c033ecd22a3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 lines
386 B
Python
14 lines
386 B
Python
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()])))
|