diff options
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/builder.py')
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/builder.py | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py index 8390a0cf06..0c00d2a6de 100755 --- a/bitbake/lib/bb/ui/crumbs/builder.py +++ b/bitbake/lib/bb/ui/crumbs/builder.py | |||
@@ -608,13 +608,20 @@ class Builder(gtk.Window): | |||
608 | self.stopping = False | 608 | self.stopping = False |
609 | 609 | ||
610 | def build_failed(self): | 610 | def build_failed(self): |
611 | if self.current_step == self.FAST_IMAGE_GENERATING: | 611 | if self.stopping: |
612 | fraction = 0.9 | 612 | status = "stop" |
613 | elif self.current_step == self.IMAGE_GENERATING: | 613 | message = "Build stopped: " |
614 | fraction = 1.0 | 614 | fraction = self.build_details_page.progress_bar.get_fraction() |
615 | elif self.current_step == self.PACKAGE_GENERATING: | 615 | else: |
616 | fraction = 1.0 | 616 | if self.current_step == self.FAST_IMAGE_GENERATING: |
617 | self.build_details_page.update_progress_bar("Build Failed: ", fraction, False) | 617 | fraction = 0.9 |
618 | elif self.current_step == self.IMAGE_GENERATING: | ||
619 | fraction = 1.0 | ||
620 | elif self.current_step == self.PACKAGE_GENERATING: | ||
621 | fraction = 1.0 | ||
622 | status = "fail" | ||
623 | message = "Build failed: " | ||
624 | self.build_details_page.update_progress_bar(message, fraction, status) | ||
618 | self.build_details_page.show_back_button() | 625 | self.build_details_page.show_back_button() |
619 | self.build_details_page.hide_stop_button() | 626 | self.build_details_page.hide_stop_button() |
620 | self.handler.build_failed_async() | 627 | self.handler.build_failed_async() |