From 53cc2c6cac6961babc283ed8efc34a591c43dbce Mon Sep 17 00:00:00 2001 From: Shane Wang Date: Wed, 29 Feb 2012 22:15:02 +0800 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hig.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'bitbake/lib/bb/ui/crumbs/hig.py') 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 import subprocess import shlex from bb.ui.crumbs.hobcolor import HobColors -from bb.ui.crumbs.hobwidget import HobViewTable +from bb.ui.crumbs.hobwidget import hcc, HobViewTable from bb.ui.crumbs.progressbar import HobProgressBar """ @@ -1083,9 +1083,10 @@ class ImageSelectionDialog (gtk.Dialog): dirs[:] = [] for f in files: for image_type in self.image_types: - if f.endswith('.' + image_type): - imageset.add(f.rsplit('.' + image_type)[0]) - self.image_list.append(f) + for real_image_type in hcc.SUPPORTED_IMAGE_TYPES[image_type]: + if f.endswith('.' + real_image_type): + imageset.add(f.rsplit('.' + real_image_type)[0]) + self.image_list.append(f) for image in imageset: self.image_store.set(self.image_store.append(), 0, image, 1, False) -- cgit v1.2.3-54-g00ecf