summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hig.py
diff options
context:
space:
mode:
authorShane Wang <shane.wang@intel.com>2012-02-29 22:15:02 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-01 15:51:31 +0000
commit53cc2c6cac6961babc283ed8efc34a591c43dbce (patch)
treed2149eab26b5025165f30e27d9c6e1755f85f820 /bitbake/lib/bb/ui/crumbs/hig.py
parent73444fb68cae5e2ada44f370443a63bd9e30f4c0 (diff)
downloadpoky-53cc2c6cac6961babc283ed8efc34a591c43dbce.tar.gz
Hob: include hddimg and iso into image types.
For image types, so far we don't include hddimg and iso. Then those files can not be deployed because they are filtered out in the image selection dialog. This patch is to include hddimg and iso (which are "live" in image types). Again, we have a TODO in the code for the future, that is to retrieve image types from the bitbake server instead of to use the walkaround. (Bitbake rev: d565507940be73fb5ea3ae7048d8d143c44c2a95) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hig.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hig.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hig.py b/bitbake/lib/bb/ui/crumbs/hig.py
index 74f4f7b98a..cbad899ae0 100644
--- a/bitbake/lib/bb/ui/crumbs/hig.py
+++ b/bitbake/lib/bb/ui/crumbs/hig.py
@@ -28,7 +28,7 @@ import re
28import subprocess 28import subprocess
29import shlex 29import shlex
30from bb.ui.crumbs.hobcolor import HobColors 30from bb.ui.crumbs.hobcolor import HobColors
31from bb.ui.crumbs.hobwidget import HobViewTable 31from bb.ui.crumbs.hobwidget import hcc, HobViewTable
32from bb.ui.crumbs.progressbar import HobProgressBar 32from bb.ui.crumbs.progressbar import HobProgressBar
33 33
34""" 34"""
@@ -1083,9 +1083,10 @@ class ImageSelectionDialog (gtk.Dialog):
1083 dirs[:] = [] 1083 dirs[:] = []
1084 for f in files: 1084 for f in files:
1085 for image_type in self.image_types: 1085 for image_type in self.image_types:
1086 if f.endswith('.' + image_type): 1086 for real_image_type in hcc.SUPPORTED_IMAGE_TYPES[image_type]:
1087 imageset.add(f.rsplit('.' + image_type)[0]) 1087 if f.endswith('.' + real_image_type):
1088 self.image_list.append(f) 1088 imageset.add(f.rsplit('.' + real_image_type)[0])
1089 self.image_list.append(f)
1089 1090
1090 for image in imageset: 1091 for image in imageset:
1091 self.image_store.set(self.image_store.append(), 0, image, 1, False) 1092 self.image_store.set(self.image_store.append(), 0, image, 1, False)