summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2012-10-16 14:23:27 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-24 21:13:07 +0100
commit62e9f768cd8b45a563138562c9b9067ffa73710f (patch)
tree27921351aaa3c4a0c260d098be3ec18c8380e0b8 /bitbake/lib
parent4a3b0d7287ba7ce223021d33895bf5c953f1e4dc (diff)
downloadpoky-62e9f768cd8b45a563138562c9b9067ffa73710f.tar.gz
bitbake: hob/imageconfigurationpage: progress bar shows when recipe parsing is stopped
-when the recipe parsing process is stopped, the progress bar shows "Stopping recipe parsing" [YOCTO #3259] (Bitbake rev: d20626bd717bb8f5cfd73b91337af880198db247) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-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