From patchwork Thu Oct 25 13:43:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel] hob: during recipe parsing, progress bar text provides details about the process state Date: Thu, 25 Oct 2012 13:43:44 -0000 From: Cristiana Voicu X-Patchwork-Id: 38569 Message-Id: <1351172624-25566-1-git-send-email-cristiana.voicu@intel.com> To: bitbake-devel@lists.openembedded.org - indicating on progress bar that hob has gone from parsing recipes to "Generating dependency tree"; this will provide some visibility of what has caused the "stop" button state to change [YOCTO #3282] Signed-off-by: Cristiana Voicu --- bitbake/lib/bb/ui/crumbs/builder.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py index 2fc4a29..67d7de8 100755 --- a/bitbake/lib/bb/ui/crumbs/builder.py +++ b/bitbake/lib/bb/ui/crumbs/builder.py @@ -962,7 +962,10 @@ class Builder(gtk.Window): else: self.image_configuration_page.stop_button.set_sensitive(True) - self.image_configuration_page.update_progress_bar(message["title"], 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_cb(self, handler, message): if self.current_step != self.RCPPKGINFO_POPULATING: @@ -973,7 +976,10 @@ class Builder(gtk.Window): fraction = 0.6 + 0.38 * fraction else: fraction = 0.6 * fraction - self.image_configuration_page.update_progress_bar(message["title"], 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): if self.current_step != self.RCPPKGINFO_POPULATING: