summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/views.py
diff options
context:
space:
mode:
authorFarrell Wymore <farrell.wymore@windriver.com>2014-05-23 12:09:29 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-06-20 14:03:58 +0100
commitfee3a886950b0adf18b249f9647eb6bb39650ea2 (patch)
treea419dd6fd448e4f2c58b4ffd957b026401740f6f /bitbake/lib/toaster/toastergui/views.py
parent457091dc5650d92b2d6bc99cc37b4f1118606a0e (diff)
downloadpoky-fee3a886950b0adf18b249f9647eb6bb39650ea2.tar.gz
bitbake: toaster: display message if no images are generated
Display message if no images are generated for a target. This commit was amended to have more conditions for displaying the message. [YOCTO #6094] (Bitbake rev: ac1911eb857f4759ed085c8a4fc4b47cefafcd7a) Signed-off-by: Farrell Wymore <farrell.wymore@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
-rwxr-xr-xbitbake/lib/toaster/toastergui/views.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index 6de448596a..68e981a50e 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -402,6 +402,7 @@ def builddashboard( request, build_id ):
402 targets = [ ] 402 targets = [ ]
403 ntargets = 0 403 ntargets = 0
404 hasImages = False 404 hasImages = False
405 targetHasNoImages = False
405 for t in tgts: 406 for t in tgts:
406 elem = { } 407 elem = { }
407 elem[ 'target' ] = t 408 elem[ 'target' ] = t
@@ -428,7 +429,11 @@ def builddashboard( request, build_id ):
428 ndx = 0; 429 ndx = 0;
429 f = i.file_name[ ndx + 1: ] 430 f = i.file_name[ ndx + 1: ]
430 imageFiles.append({ 'path': f, 'size' : i.file_size }) 431 imageFiles.append({ 'path': f, 'size' : i.file_size })
432 if ( t.is_image and
433 (( len( imageFiles ) <= 0 ) or ( len( t.license_manifest_path ) <= 0 ))):
434 targetHasNoImages = True
431 elem[ 'imageFiles' ] = imageFiles 435 elem[ 'imageFiles' ] = imageFiles
436 elem[ 'targetHasNoImages' ] = targetHasNoImages
432 targets.append( elem ) 437 targets.append( elem )
433 438
434 ## 439 ##