diff options
Diffstat (limited to 'bitbake/lib/toaster/toastermain/management')
-rw-r--r-- | bitbake/lib/toaster/toastermain/management/commands/buildslist.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastermain/management/commands/buildslist.py b/bitbake/lib/toaster/toastermain/management/commands/buildslist.py index 8dfef0aa00..70b5812d98 100644 --- a/bitbake/lib/toaster/toastermain/management/commands/buildslist.py +++ b/bitbake/lib/toaster/toastermain/management/commands/buildslist.py | |||
@@ -1,13 +1,13 @@ | |||
1 | from django.core.management.base import NoArgsCommand, CommandError | 1 | from django.core.management.base import BaseCommand, CommandError |
2 | from orm.models import Build | 2 | from orm.models import Build |
3 | import os | 3 | import os |
4 | 4 | ||
5 | 5 | ||
6 | 6 | ||
7 | class Command(NoArgsCommand): | 7 | class Command(BaseCommand): |
8 | args = "" | 8 | args = "" |
9 | help = "Lists current builds" | 9 | help = "Lists current builds" |
10 | 10 | ||
11 | def handle_noargs(self,**options): | 11 | def handle(self,**options): |
12 | for b in Build.objects.all(): | 12 | for b in Build.objects.all(): |
13 | print("%d: %s %s %s" % (b.pk, b.machine, b.distro, ",".join([x.target for x in b.target_set.all()]))) | 13 | print("%d: %s %s %s" % (b.pk, b.machine, b.distro, ",".join([x.target for x in b.target_set.all()]))) |