diff options
author | Cristiana Voicu <cristiana.voicu@intel.com> | 2013-03-20 11:21:39 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-22 16:54:38 +0000 |
commit | ab7d8bd172f61e14266a020bd6633d33d79e3d8f (patch) | |
tree | 38456f9040db6e89cf5f1bc98336a8e08200c05f /bitbake/lib/bb/ui | |
parent | acc5f0d94b05378a6f68667742775f84dfdc7fe2 (diff) | |
download | poky-ab7d8bd172f61e14266a020bd6633d33d79e3d8f.tar.gz |
bitbake: hob: Hob custom image build error
For a custom image from scratch, the image version is not set and
it gives an error.
[YOCTO #4065]
(Bitbake rev: 43703f3eb5f71a117e6315fa5df91711653636a3)
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui')
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/builder.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py index 85066299d7..6f95f5b4ce 100755 --- a/bitbake/lib/bb/ui/crumbs/builder.py +++ b/bitbake/lib/bb/ui/crumbs/builder.py | |||
@@ -1025,10 +1025,12 @@ class Builder(gtk.Window): | |||
1025 | fraction = 0.9 | 1025 | fraction = 0.9 |
1026 | elif self.current_step == self.IMAGE_GENERATING: | 1026 | elif self.current_step == self.IMAGE_GENERATING: |
1027 | fraction = 1.0 | 1027 | fraction = 1.0 |
1028 | version = "" | ||
1028 | self.parameters.image_names = [] | 1029 | self.parameters.image_names = [] |
1029 | selected_image = self.recipe_model.get_selected_image() | 1030 | selected_image = self.recipe_model.get_selected_image() |
1030 | if selected_image == self.recipe_model.__custom_image__: | 1031 | if selected_image == self.recipe_model.__custom_image__: |
1031 | version = self.recipe_model.get_custom_image_version() | 1032 | if self.configuration.initial_selected_image != selected_image: |
1033 | version = self.recipe_model.get_custom_image_version() | ||
1032 | linkname = 'hob-image' + version+ "-" + self.configuration.curr_mach | 1034 | linkname = 'hob-image' + version+ "-" + self.configuration.curr_mach |
1033 | else: | 1035 | else: |
1034 | linkname = selected_image + '-' + self.configuration.curr_mach | 1036 | linkname = selected_image + '-' + self.configuration.curr_mach |