summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-04-09 16:41:57 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-11 00:04:42 +0100
commitc546037dc9a9af49246d06114f19533ecfca67c3 (patch)
tree65ebb3c277289bed43a0eccc5a262164b804f008 /bitbake
parent0aff9a5824eab6b6829907bfa75ce996554eebea (diff)
downloadpoky-c546037dc9a9af49246d06114f19533ecfca67c3.tar.gz
Hob: Change base image to "Create your own image" if customized
Once user did customization to his base image, we change the base image to be "Create your own image" to avoid some issues caused by the relationship between base image and its default recipes and packages. This fixes [YOCTO #2211] (Bitbake rev: 8edad8d282b69896237e956a00c66cd4d10ef494) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/builder.py3
-rw-r--r--bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py2
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/packageselectionpage.py6
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/recipeselectionpage.py5
4 files changed, 16 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py
index a3410d425d..bc7e61094c 100755
--- a/bitbake/lib/bb/ui/crumbs/builder.py
+++ b/bitbake/lib/bb/ui/crumbs/builder.py
@@ -272,6 +272,9 @@ class Builder(gtk.Window):
272 self.recipe_model = recipe_model 272 self.recipe_model = recipe_model
273 self.package_model = package_model 273 self.package_model = package_model
274 274
275 # Indicate whether user has customized the image
276 self.customized = False
277
275 # create visual elements 278 # create visual elements
276 self.create_visual_elements() 279 self.create_visual_elements()
277 280
diff --git a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
index d8cb7524e5..5c2539db33 100644
--- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
+++ b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
@@ -291,6 +291,8 @@ class ImageConfigurationPage (HobPage):
291 if not selected_image: 291 if not selected_image:
292 return 292 return
293 293
294 self.builder.customized = False
295
294 selected_recipes = [] 296 selected_recipes = []
295 297
296 image_path = self.builder.recipe_model.pn_path[selected_image] 298 image_path = self.builder.recipe_model.pn_path[selected_image]
diff --git a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
index 81ff76d153..3dc09100fa 100755
--- a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
@@ -95,6 +95,7 @@ class PackageSelectionPage (HobPage):
95 super(PackageSelectionPage, self).__init__(builder, "Packages") 95 super(PackageSelectionPage, self).__init__(builder, "Packages")
96 96
97 # set invisiable members 97 # set invisiable members
98 self.recipe_model = self.builder.recipe_model
98 self.package_model = self.builder.package_model 99 self.package_model = self.builder.package_model
99 100
100 # create visual elements 101 # create visual elements
@@ -191,6 +192,11 @@ class PackageSelectionPage (HobPage):
191 self.package_model.exclude_item(item_path=path) 192 self.package_model.exclude_item(item_path=path)
192 193
193 self.refresh_selection() 194 self.refresh_selection()
195 if not self.builder.customized:
196 self.builder.customized = True
197 self.builder.configuration.selected_image = self.recipe_model.__dummy_image__
198 self.builder.rcppkglist_populated()
199
194 self.builder.window_sensitive(True) 200 self.builder.window_sensitive(True)
195 201
196 def table_toggled_cb(self, table, cell, view_path, toggled_columnid, view_tree): 202 def table_toggled_cb(self, table, cell, view_path, toggled_columnid, view_tree):
diff --git a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
index 019f9f345e..3ad4c3cc23 100755
--- a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
@@ -204,6 +204,11 @@ class RecipeSelectionPage (HobPage):
204 self.recipe_model.exclude_item(item_path=path) 204 self.recipe_model.exclude_item(item_path=path)
205 205
206 self.refresh_selection() 206 self.refresh_selection()
207 if not self.builder.customized:
208 self.builder.customized = True
209 self.builder.configuration.selected_image = self.recipe_model.__dummy_image__
210 self.builder.rcppkglist_populated()
211
207 self.builder.window_sensitive(True) 212 self.builder.window_sensitive(True)
208 213
209 def table_toggled_cb(self, table, cell, view_path, toggled_columnid, view_tree): 214 def table_toggled_cb(self, table, cell, view_path, toggled_columnid, view_tree):