summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
-rwxr-xr-xbitbake/lib/toaster/toastergui/views.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index a82a261e0d..02caf54d50 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -471,19 +471,14 @@ def builddashboard( request, build_id ):
471 recipeCount = Recipe.objects.filter( layer_version__id__in = layerVersionId ).count( ); 471 recipeCount = Recipe.objects.filter( layer_version__id__in = layerVersionId ).count( );
472 tgts = Target.objects.filter( build_id = build_id ).order_by( 'target' ); 472 tgts = Target.objects.filter( build_id = build_id ).order_by( 'target' );
473 473
474 ##
475 # set up custom target list with computed package and image data 474 # set up custom target list with computed package and image data
476 #
477
478 targets = [ ] 475 targets = [ ]
479 ntargets = 0 476 ntargets = 0
480 hasImages = False 477
481 targetHasNoImages = False 478 targetHasNoImages = False
482 for t in tgts: 479 for t in tgts:
483 elem = { } 480 elem = { }
484 elem[ 'target' ] = t 481 elem[ 'target' ] = t
485 if t.is_image:
486 hasImages = True
487 npkg = 0 482 npkg = 0
488 pkgsz = 0 483 pkgsz = 0
489 package = None 484 package = None
@@ -533,7 +528,7 @@ def builddashboard( request, build_id ):
533 context = { 528 context = {
534 'build' : build, 529 'build' : build,
535 'project' : build.project, 530 'project' : build.project,
536 'hasImages' : hasImages, 531 'hasImages' : build.has_images(),
537 'ntargets' : ntargets, 532 'ntargets' : ntargets,
538 'targets' : targets, 533 'targets' : targets,
539 'recipecount' : recipeCount, 534 'recipecount' : recipeCount,