From 99fa251b5696dff77358d514175bbb08802a7a02 Mon Sep 17 00:00:00 2001 From: Cristiana Voicu Date: Wed, 31 Oct 2012 15:31:07 +0200 Subject: bitbake: hob: providing details about process state through porgress bar -small changes to the text of the progress bar when parsing recipes [YOCTO #3282] (Bitbake rev: 90c0dfc39c3ce13e53c7c91168dc3401f7df476b) Signed-off-by: Cristiana Voicu Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/builder.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'bitbake/lib/bb/ui/crumbs/builder.py') diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py index e5222da285..ecf5371bf6 100755 --- a/bitbake/lib/bb/ui/crumbs/builder.py +++ b/bitbake/lib/bb/ui/crumbs/builder.py @@ -947,10 +947,10 @@ class Builder(gtk.Window): self.package_details_page.refresh_selection() def handler_recipe_populated_cb(self, handler): - self.image_configuration_page.update_progress_bar("Populated recipes", 0.99) + self.image_configuration_page.update_progress_bar("Populating recipes", 0.99) def handler_package_populated_cb(self, handler): - self.image_configuration_page.update_progress_bar("Populated packages", 1.0) + self.image_configuration_page.update_progress_bar("Populating packages", 1.0) def handler_parsing_started_cb(self, handler, message): if self.current_step != self.RCPPKGINFO_POPULATING: @@ -960,12 +960,9 @@ class Builder(gtk.Window): if message["eventname"] == "TreeDataPreparationStarted": fraction = 0.6 + fraction self.image_configuration_page.stop_button.set_sensitive(False) - else: - self.image_configuration_page.stop_button.set_sensitive(True) - - if message["eventname"] == "TreeDataPreparationProgress": self.image_configuration_page.update_progress_bar("Generating dependency tree", fraction) else: + self.image_configuration_page.stop_button.set_sensitive(True) self.image_configuration_page.update_progress_bar(message["title"], fraction) def handler_parsing_cb(self, handler, message): @@ -975,11 +972,9 @@ class Builder(gtk.Window): fraction = message["current"] * 1.0/message["total"] if message["eventname"] == "TreeDataPreparationProgress": fraction = 0.6 + 0.38 * fraction + self.image_configuration_page.update_progress_bar("Generating dependency tree", fraction) else: fraction = 0.6 * fraction - if message["eventname"] == "TreeDataPreparationProgress": - self.image_configuration_page.update_progress_bar("Generating dependency tree", fraction) - else: self.image_configuration_page.update_progress_bar(message["title"], fraction) def handler_parsing_completed_cb(self, handler, message): @@ -990,7 +985,7 @@ class Builder(gtk.Window): fraction = 0.98 else: fraction = 0.6 - self.image_configuration_page.update_progress_bar(message["title"], fraction) + self.image_configuration_page.update_progress_bar("Generating dependency tree", fraction) def handler_build_started_cb(self, running_build): if self.current_step == self.FAST_IMAGE_GENERATING: -- cgit v1.2.3-54-g00ecf