summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/views.py
diff options
context:
space:
mode:
authorElliot Smith <elliot.smith@intel.com>2016-02-23 12:17:04 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-26 17:20:28 +0000
commit98d462c8e67e292188f2614a3cc9db6136320351 (patch)
tree2375759d5a3bd601336cb0e880511c4f59ab6f58 /bitbake/lib/toaster/toastergui/views.py
parent88b56603ce18337ac3c31185ae6ee90e9551c2ae (diff)
downloadpoky-98d462c8e67e292188f2614a3cc9db6136320351.tar.gz
bitbake: toaster: show suffix for image files and basename for artifact files
The build dashboard doesn't show image and artifact files correctly, as it shows the full filename for images and the filename plus path relative to DEPLOY_DIR for artifacts. Instead, show just the suffix for image files, and the basename for artifact files. (Bitbake rev: 8084dcdc283b4dc170f066c202f89d56ce1abbef) Signed-off-by: Elliot Smith <elliot.smith@intel.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.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index 13489af6fd..28b03d30b2 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -480,7 +480,12 @@ def builddashboard( request, build_id ):
480 if ( ndx < 0 ): 480 if ( ndx < 0 ):
481 ndx = 0; 481 ndx = 0;
482 f = i.file_name[ ndx + 1: ] 482 f = i.file_name[ ndx + 1: ]
483 imageFiles.append({ 'id': i.id, 'path': f, 'size' : i.file_size }) 483 imageFiles.append({
484 'id': i.id,
485 'path': f,
486 'size': i.file_size,
487 'suffix': i.suffix
488 })
484 if t.is_image and (len(imageFiles) <= 0 or len(t.license_manifest_path) <= 0): 489 if t.is_image and (len(imageFiles) <= 0 or len(t.license_manifest_path) <= 0):
485 targetHasNoImages = True 490 targetHasNoImages = True
486 elem[ 'imageFiles' ] = imageFiles 491 elem[ 'imageFiles' ] = imageFiles