diff options
author | Cristiana Voicu <cristiana.voicu@intel.com> | 2013-07-29 09:55:06 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-06 13:02:24 +0100 |
commit | 140744c4701bcac0dd61e11303d008f2ea34fc1b (patch) | |
tree | 56d29d44308a0c357069b6e7957317a88111c273 /bitbake/lib/bb/ui/crumbs/hig | |
parent | ee4fe5a229125d01cf8b697c759d0852f9a715a8 (diff) | |
download | poky-140744c4701bcac0dd61e11303d008f2ea34fc1b.tar.gz |
bitbake: hob/bitbake: create a template (a .bb file) from hob through bitbake
Modified generateNewImage function from cooker, in order to be used to
save a template in Hob.
Created a command to ensure that some dirs are created. The templates
(recipes) will be saved in {TOPDIR}/recipes/images folder.
Called these methods from Hob.
[YOCTO #4193]
(Bitbake rev: 96ffa00945c7eb09a0132fa47159aef3ef20fb3e)
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')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hig/saveimagedialog.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hig/saveimagedialog.py b/bitbake/lib/bb/ui/crumbs/hig/saveimagedialog.py index 3fc389aaa1..b2fa3bd5a9 100644 --- a/bitbake/lib/bb/ui/crumbs/hig/saveimagedialog.py +++ b/bitbake/lib/bb/ui/crumbs/hig/saveimagedialog.py | |||
@@ -117,7 +117,7 @@ class SaveImageDialog (CrumbsDialog): | |||
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 | if new_text.islower() and new_text.isalnum(): | 119 | if new_text.islower() and new_text.isalnum(): |
120 | print(text) | 120 | self.builder.generate_new_image(self.directory+text) |
121 | self.destroy() | 121 | self.destroy() |
122 | else: | 122 | else: |
123 | self.show_invalid_input_error_dialog() | 123 | self.show_invalid_input_error_dialog() |