diff options
author | Cristiana Voicu <cristiana.voicu@intel.com> | 2013-07-29 10:02:24 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-06 13:02:24 +0100 |
commit | 564c83be5ee1f69e6d097c20dbfa3a76cccc0aa0 (patch) | |
tree | 75ee8ffa60e28f9275ff7b5d2b32bb97e2c3b2b4 /bitbake/lib/bb/ui/crumbs/hig/saveimagedialog.py | |
parent | 140744c4701bcac0dd61e11303d008f2ea34fc1b (diff) | |
download | poky-564c83be5ee1f69e6d097c20dbfa3a76cccc0aa0.tar.gz |
bitbake: hob/bitbake: save the description of a custom image
When an new image is saved, the dialog for this action has
a field for the description. Changed how an image is saved, by
appending the DESCRIPTION variable at the end of the .bb file.
[YOCTO #4193]
(Bitbake rev: 5629007f2b984005e3a8ac5d9b71422cbc2f1409)
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/crumbs/hig/saveimagedialog.py')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hig/saveimagedialog.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hig/saveimagedialog.py b/bitbake/lib/bb/ui/crumbs/hig/saveimagedialog.py index b2fa3bd5a9..b94e69f61c 100644 --- a/bitbake/lib/bb/ui/crumbs/hig/saveimagedialog.py +++ b/bitbake/lib/bb/ui/crumbs/hig/saveimagedialog.py | |||
@@ -116,8 +116,10 @@ class SaveImageDialog (CrumbsDialog): | |||
116 | def save_button_cb(self, button): | 116 | def save_button_cb(self, button): |
117 | text = self.name_entry.get_text() | 117 | text = self.name_entry.get_text() |
118 | new_text = text.replace("-","") | 118 | new_text = text.replace("-","") |
119 | description_buffer = self.description_entry.get_buffer() | ||
120 | description = description_buffer.get_text(description_buffer.get_start_iter(),description_buffer.get_end_iter()) | ||
119 | if new_text.islower() and new_text.isalnum(): | 121 | if new_text.islower() and new_text.isalnum(): |
120 | self.builder.generate_new_image(self.directory+text) | 122 | self.builder.generate_new_image(self.directory+text, description) |
121 | self.destroy() | 123 | self.destroy() |
122 | else: | 124 | else: |
123 | self.show_invalid_input_error_dialog() | 125 | self.show_invalid_input_error_dialog() |