summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
index cbef85a9ce..660319a9c9 100644
--- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
+++ b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
@@ -45,6 +45,7 @@ class ImageConfigurationPage (HobPage):
45 # or by manual. If by manual, all user's recipe selection and package selection are 45 # or by manual. If by manual, all user's recipe selection and package selection are
46 # cleared. 46 # cleared.
47 self.machine_combo_changed_by_manual = True 47 self.machine_combo_changed_by_manual = True
48 self.stopping = False
48 self.create_visual_elements() 49 self.create_visual_elements()
49 50
50 def create_visual_elements(self): 51 def create_visual_elements(self):
@@ -114,9 +115,10 @@ class ImageConfigurationPage (HobPage):
114 self.show_all() 115 self.show_all()
115 116
116 def update_progress_bar(self, title, fraction, status=None): 117 def update_progress_bar(self, title, fraction, status=None):
117 self.progress_bar.update(fraction) 118 if self.stopping == False:
118 self.progress_bar.set_title(title) 119 self.progress_bar.update(fraction)
119 self.progress_bar.set_rcstyle(status) 120 self.progress_bar.set_title(title)
121 self.progress_bar.set_rcstyle(status)
120 122
121 def show_info_populating(self): 123 def show_info_populating(self):
122 self._pack_components(pack_config_build_button = False) 124 self._pack_components(pack_config_build_button = False)
@@ -248,9 +250,13 @@ class ImageConfigurationPage (HobPage):
248 return button_box 250 return button_box
249 251
250 def stop_button_clicked_cb(self, button): 252 def stop_button_clicked_cb(self, button):
253 self.stopping = True
254 self.progress_bar.set_text("Stopping recipe parsing")
255 self.progress_bar.set_rcstyle("stop")
251 self.builder.cancel_parse_sync() 256 self.builder.cancel_parse_sync()
252 257
253 def machine_combo_changed_cb(self, machine_combo): 258 def machine_combo_changed_cb(self, machine_combo):
259 self.stopping = False
254 combo_item = machine_combo.get_active_text() 260 combo_item = machine_combo.get_active_text()
255 if not combo_item or combo_item == self.__dummy_machine__: 261 if not combo_item or combo_item == self.__dummy_machine__:
256 return 262 return