Patchwork [bitbake-devel] hob: Hob custom image build error

login
register
mail settings
Submitter Cristiana Voicu
Date March 20, 2013, 9:21 a.m.
Message ID <1363771299-17447-1-git-send-email-cristiana.voicu@intel.com>
Download mbox | patch
Permalink /patch/46545/
State New
Headers show

Comments

Cristiana Voicu - March 20, 2013, 9:21 a.m.
For a custom image from scratch, the image version is not set and
it gives an error.

[YOCTO #4065]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
---
 bitbake/lib/bb/ui/crumbs/builder.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch

diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py
index f6adabe..edff58c 100755
--- a/bitbake/lib/bb/ui/crumbs/builder.py
+++ b/bitbake/lib/bb/ui/crumbs/builder.py
@@ -1023,10 +1023,12 @@  class Builder(gtk.Window):
             fraction = 0.9
         elif self.current_step == self.IMAGE_GENERATING:
             fraction = 1.0
+            version = ""
             self.parameters.image_names = []
             selected_image = self.recipe_model.get_selected_image()
             if selected_image == self.recipe_model.__custom_image__:
-                version = self.recipe_model.get_custom_image_version()
+                if self.configuration.initial_selected_image != selected_image:
+                    version = self.recipe_model.get_custom_image_version()
                 linkname = 'hob-image' + version+ "-" + self.configuration.curr_mach
             else:
                 linkname = selected_image + '-' + self.configuration.curr_mach