hob:bug-fixes
cover hob:bug-fixes
The following changes since commit 85c005d71c30bc5de61f9a9eb9818f37183af54b:
tzdata: Upgrade tzdata to upstream 2012d (2012-08-02 23:21:12 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib limx/hob-bug-fixes-continue
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=limx/hob-bug-fixes-continue
Liming An (1):
Hob: fixed the build image failure scenario
bitbake/lib/bb/ui/crumbs/builddetailspage.py | 14 ++++++-------- bitbake/lib/bb/ui/crumbs/builder.py | 3 ++- bitbake/lib/bb/ui/crumbs/hobwidget.py | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-)
Signature · 1 line
1.7.5.4
PATCH 1/1 Hob: fixed the build image failure scenario
As ui design,
1)change the primary button always to 'Edit image', 2)change the title to 'Hob cannot build the packages' when build packages failure occur,
3)make the page transfer to 'Issue'
[YOCTO #2183]
Signed-off-by Liming An <[email protected]>
--- bitbake/lib/bb/ui/crumbs/builddetailspage.py | 14 ++++++-------- bitbake/lib/bb/ui/crumbs/builder.py | 3 ++- bitbake/lib/bb/ui/crumbs/hobwidget.py | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-)
bitbake/lib/bb/ui/crumbs/builddetailspage.py +6 -8
@@ -199,9 +199,7 @@ class BuildDetailsPage (HobPage): for child in children: self.remove(child) - def add_build_fail_top_bar(self, actions, log_file=None): - primary_action = "Edit %s" % actions - + def add_build_fail_top_bar(self, primary_action, log_file=None): self.notebook.set_page("Issues") color = HobColors.ERROR
@@ -228,7 +226,7 @@ class BuildDetailsPage (HobPage): build_fail_tab.attach(label, 4, 40, 4, 9) # create button 'Edit packages' - action_button = HobButton(primary_action) + action_button = HobButton('Edit image') action_button.set_size_request(-1, 40) action_button.connect('clicked', self.failure_primary_action_button_clicked_cb, primary_action) build_fail_tab.attach(action_button, 4, 13, 9, 12)
@@ -249,7 +247,7 @@ class BuildDetailsPage (HobPage): def show_fail_page(self, title, action_names): self._remove_all_widget() - self.title = "Hob cannot build your %s" % title + self.title = "Hob cannot build %s" % title self.build_fail_bar = self.add_build_fail_top_bar(action_names, self.builder.current_logfile)
@@ -318,11 +316,11 @@ class BuildDetailsPage (HobPage): self.config_tv.show(configurations, params) def failure_primary_action_button_clicked_cb(self, button, action): - if "Edit recipes" in action: + if "recipes" in action: self.builder.show_recipes() - elif "Edit packages" in action: + elif "packages" in action: self.builder.show_packages() - elif "Edit image configuration" in action: + elif "image configuration" in action: self.builder.show_configuration() def failure_open_log_button_clicked_cb(self, button, log_file):
bitbake/lib/bb/ui/crumbs/builder.py +2 -1
@@ -918,7 +918,8 @@ class Builder(gtk.Window): elif self.current_step == self.PACKAGE_GENERATING: fail_to_next_edit = "recipes" fraction = 1.0 - self.build_details_page.show_fail_page(fail_to_next_edit.split(' ')[0], fail_to_next_edit) + title = "the packages" if (self.current_step == self.PACKAGE_GENERATING) else "your image" + self.build_details_page.show_fail_page(title, fail_to_next_edit) status = "fail" message = "Build failed: " self.build_details_page.update_progress_bar(message, fraction, status)
bitbake/lib/bb/ui/crumbs/hobwidget.py +1 -1
@@ -537,7 +537,7 @@ class HobNotebook(gtk.Notebook): for child in self.pages: if child.lbl.get_label() == title: child.grab_focus() - self.set_current_page(self.page_num(child)) + self.set_current_page(self.pages.index(child)) class HobWarpCellRendererText(gtk.CellRendererText): def __init__(self, col_number):
Signature · 1 line
1.7.5.4