diff options
| author | Cristiana Voicu <cristiana.voicu@intel.com> | 2012-10-31 15:31:07 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-11-01 11:46:22 +0000 |
| commit | 99fa251b5696dff77358d514175bbb08802a7a02 (patch) | |
| tree | 08b6eb26d39858b6654497cbc296ae3070f447a7 /bitbake/lib/bb/ui/crumbs/builder.py | |
| parent | e450b10c4ca4a8c32bbe2f77872f84993426fef4 (diff) | |
| download | poky-99fa251b5696dff77358d514175bbb08802a7a02.tar.gz | |
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 <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/builder.py')
| -rwxr-xr-x | bitbake/lib/bb/ui/crumbs/builder.py | 15 |
1 files changed, 5 insertions, 10 deletions
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): | |||
| 947 | self.package_details_page.refresh_selection() | 947 | self.package_details_page.refresh_selection() |
| 948 | 948 | ||
| 949 | def handler_recipe_populated_cb(self, handler): | 949 | def handler_recipe_populated_cb(self, handler): |
| 950 | self.image_configuration_page.update_progress_bar("Populated recipes", 0.99) | 950 | self.image_configuration_page.update_progress_bar("Populating recipes", 0.99) |
| 951 | 951 | ||
| 952 | def handler_package_populated_cb(self, handler): | 952 | def handler_package_populated_cb(self, handler): |
| 953 | self.image_configuration_page.update_progress_bar("Populated packages", 1.0) | 953 | self.image_configuration_page.update_progress_bar("Populating packages", 1.0) |
| 954 | 954 | ||
| 955 | def handler_parsing_started_cb(self, handler, message): | 955 | def handler_parsing_started_cb(self, handler, message): |
| 956 | if self.current_step != self.RCPPKGINFO_POPULATING: | 956 | if self.current_step != self.RCPPKGINFO_POPULATING: |
| @@ -960,12 +960,9 @@ class Builder(gtk.Window): | |||
| 960 | if message["eventname"] == "TreeDataPreparationStarted": | 960 | if message["eventname"] == "TreeDataPreparationStarted": |
| 961 | fraction = 0.6 + fraction | 961 | fraction = 0.6 + fraction |
| 962 | self.image_configuration_page.stop_button.set_sensitive(False) | 962 | self.image_configuration_page.stop_button.set_sensitive(False) |
| 963 | else: | ||
| 964 | self.image_configuration_page.stop_button.set_sensitive(True) | ||
| 965 | |||
| 966 | if message["eventname"] == "TreeDataPreparationProgress": | ||
| 967 | self.image_configuration_page.update_progress_bar("Generating dependency tree", fraction) | 963 | self.image_configuration_page.update_progress_bar("Generating dependency tree", fraction) |
| 968 | else: | 964 | else: |
| 965 | self.image_configuration_page.stop_button.set_sensitive(True) | ||
| 969 | self.image_configuration_page.update_progress_bar(message["title"], fraction) | 966 | self.image_configuration_page.update_progress_bar(message["title"], fraction) |
| 970 | 967 | ||
| 971 | def handler_parsing_cb(self, handler, message): | 968 | def handler_parsing_cb(self, handler, message): |
| @@ -975,11 +972,9 @@ class Builder(gtk.Window): | |||
| 975 | fraction = message["current"] * 1.0/message["total"] | 972 | fraction = message["current"] * 1.0/message["total"] |
| 976 | if message["eventname"] == "TreeDataPreparationProgress": | 973 | if message["eventname"] == "TreeDataPreparationProgress": |
| 977 | fraction = 0.6 + 0.38 * fraction | 974 | fraction = 0.6 + 0.38 * fraction |
| 975 | self.image_configuration_page.update_progress_bar("Generating dependency tree", fraction) | ||
| 978 | else: | 976 | else: |
| 979 | fraction = 0.6 * fraction | 977 | fraction = 0.6 * fraction |
| 980 | if message["eventname"] == "TreeDataPreparationProgress": | ||
| 981 | self.image_configuration_page.update_progress_bar("Generating dependency tree", fraction) | ||
| 982 | else: | ||
| 983 | self.image_configuration_page.update_progress_bar(message["title"], fraction) | 978 | self.image_configuration_page.update_progress_bar(message["title"], fraction) |
| 984 | 979 | ||
| 985 | def handler_parsing_completed_cb(self, handler, message): | 980 | def handler_parsing_completed_cb(self, handler, message): |
| @@ -990,7 +985,7 @@ class Builder(gtk.Window): | |||
| 990 | fraction = 0.98 | 985 | fraction = 0.98 |
| 991 | else: | 986 | else: |
| 992 | fraction = 0.6 | 987 | fraction = 0.6 |
| 993 | self.image_configuration_page.update_progress_bar(message["title"], fraction) | 988 | self.image_configuration_page.update_progress_bar("Generating dependency tree", fraction) |
| 994 | 989 | ||
| 995 | def handler_build_started_cb(self, running_build): | 990 | def handler_build_started_cb(self, running_build): |
| 996 | if self.current_step == self.FAST_IMAGE_GENERATING: | 991 | if self.current_step == self.FAST_IMAGE_GENERATING: |
