diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2012-04-16 15:51:43 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-16 12:56:25 +0100 |
commit | d5a9ff4b27e8826b47737c4094463896874253f4 (patch) | |
tree | 99bb1fa5a3d5c3f7333e9067f2ddd381439155df /bitbake | |
parent | e8ab6ab64b600c9ce550da88cff1868882c7f79d (diff) | |
download | poky-d5a9ff4b27e8826b47737c4094463896874253f4.tar.gz |
Hob: Fix contents in imagedetailsscreen
This commit fixes the contents in imagedetailsscreen, which lacks some
kind of image types, e.x., iso and hddimg.
(Bitbake rev: 4505097f4f7834857a6086d5dabeedb24b49cf4c)
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/builder.py | 9 | ||||
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hig.py | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py index bd45016045..6b172d0aa9 100755 --- a/bitbake/lib/bb/ui/crumbs/builder.py +++ b/bitbake/lib/bb/ui/crumbs/builder.py | |||
@@ -32,7 +32,7 @@ from bb.ui.crumbs.recipeselectionpage import RecipeSelectionPage | |||
32 | from bb.ui.crumbs.packageselectionpage import PackageSelectionPage | 32 | from bb.ui.crumbs.packageselectionpage import PackageSelectionPage |
33 | from bb.ui.crumbs.builddetailspage import BuildDetailsPage | 33 | from bb.ui.crumbs.builddetailspage import BuildDetailsPage |
34 | from bb.ui.crumbs.imagedetailspage import ImageDetailsPage | 34 | from bb.ui.crumbs.imagedetailspage import ImageDetailsPage |
35 | from bb.ui.crumbs.hobwidget import hwc, HobButton, HobAltButton | 35 | from bb.ui.crumbs.hobwidget import hwc, HobButton, HobAltButton, hcc |
36 | from bb.ui.crumbs.hig import CrumbsMessageDialog, ImageSelectionDialog, \ | 36 | from bb.ui.crumbs.hig import CrumbsMessageDialog, ImageSelectionDialog, \ |
37 | AdvancedSettingDialog, LayerSelectionDialog, \ | 37 | AdvancedSettingDialog, LayerSelectionDialog, \ |
38 | DeployImageDialog | 38 | DeployImageDialog |
@@ -752,9 +752,10 @@ class Builder(gtk.Window): | |||
752 | else: | 752 | else: |
753 | linkname = selected_image + '-' + self.configuration.curr_mach | 753 | linkname = selected_image + '-' + self.configuration.curr_mach |
754 | for image_type in self.parameters.image_types: | 754 | for image_type in self.parameters.image_types: |
755 | linkpath = self.parameters.image_addr + '/' + linkname + '.' + image_type | 755 | for real_image_type in hcc.SUPPORTED_IMAGE_TYPES[image_type]: |
756 | if os.path.exists(linkpath): | 756 | linkpath = self.parameters.image_addr + '/' + linkname + '.' + real_image_type |
757 | self.parameters.image_names.append(os.readlink(linkpath)) | 757 | if os.path.exists(linkpath): |
758 | self.parameters.image_names.append(os.readlink(linkpath)) | ||
758 | elif self.current_step == self.PACKAGE_GENERATING: | 759 | elif self.current_step == self.PACKAGE_GENERATING: |
759 | fraction = 1.0 | 760 | fraction = 1.0 |
760 | self.build_details_page.update_progress_bar("Build Completed: ", fraction) | 761 | self.build_details_page.update_progress_bar("Build Completed: ", fraction) |
diff --git a/bitbake/lib/bb/ui/crumbs/hig.py b/bitbake/lib/bb/ui/crumbs/hig.py index 322efc698f..a85b478a87 100644 --- a/bitbake/lib/bb/ui/crumbs/hig.py +++ b/bitbake/lib/bb/ui/crumbs/hig.py | |||
@@ -1107,7 +1107,7 @@ class ImageSelectionDialog (CrumbsDialog): | |||
1107 | for image_type in self.image_types: | 1107 | for image_type in self.image_types: |
1108 | for real_image_type in hcc.SUPPORTED_IMAGE_TYPES[image_type]: | 1108 | for real_image_type in hcc.SUPPORTED_IMAGE_TYPES[image_type]: |
1109 | if f.endswith('.' + real_image_type): | 1109 | if f.endswith('.' + real_image_type): |
1110 | imageset.add(f.rsplit('.' + real_image_type)[0]) | 1110 | imageset.add(f.rsplit('.' + real_image_type)[0].rsplit('.rootfs')[0]) |
1111 | self.image_list.append(f) | 1111 | self.image_list.append(f) |
1112 | 1112 | ||
1113 | for image in imageset: | 1113 | for image in imageset: |