lib/bb/ui/crumbs: tweak build status display
Use two lines to display the active task and recipe, per visual design. (From Poky rev: ea61503fc439e033b341bb7a50bac77c5e88834e) (Bitbake rev: ab508907308e8b1bc1b097df1f583dffd7ef25af) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
eba155d4d5
commit
58c1981205
|
@ -47,7 +47,7 @@ class BuildDetailsPage (HobPage):
|
|||
self.vbox = gtk.VBox(False, 12)
|
||||
|
||||
self.progress_box = gtk.VBox(False, 12)
|
||||
self.task_status = gtk.Label()
|
||||
self.task_status = gtk.Label("\n") # to ensure layout is correct
|
||||
self.task_status.set_alignment(0.0, 0.5)
|
||||
self.progress_box.pack_start(self.task_status, expand=False, fill=False)
|
||||
self.progress_hbox = gtk.HBox(False, 6)
|
||||
|
@ -89,11 +89,14 @@ class BuildDetailsPage (HobPage):
|
|||
self.back_button.connect("clicked", self.back_button_clicked_cb)
|
||||
self.button_box.pack_start(self.back_button, expand=False, fill=False)
|
||||
|
||||
def update_build_status(self, tsk_msg):
|
||||
def update_build_status(self, current, total, task):
|
||||
recipe_path, recipe_task = task.split(", ")
|
||||
recipe = os.path.basename(recipe_path).rstrip(".bb")
|
||||
tsk_msg = "<b>Running task %s of %s:</b> %s\n<b>Recipe:</b> %s" % (current, total, recipe_task, recipe)
|
||||
self.task_status.set_markup(tsk_msg)
|
||||
|
||||
def reset_build_status(self):
|
||||
self.task_status.set_markup("")
|
||||
self.task_status.set_markup("\n") # to ensure layout is correct
|
||||
|
||||
def show_issues(self):
|
||||
self.num_of_issues += 1
|
||||
|
|
|
@ -612,8 +612,7 @@ class Builder(gtk.Window):
|
|||
elif message["eventname"] == "runQueueTaskStarted":
|
||||
fraction = 0.2 + 0.8 * fraction
|
||||
self.build_details_page.update_progress_bar(title + ": ", fraction)
|
||||
self.build_details_page.update_build_status(
|
||||
"<span weight=\'bold\'>Running task %s of %s:</span> %s" % (message["current"], message["total"], message["task"]))
|
||||
self.build_details_page.update_build_status(message["current"], message["total"], message["task"])
|
||||
|
||||
def handler_build_failure_cb(self, running_build):
|
||||
self.build_details_page.show_issues()
|
||||
|
|
Loading…
Reference in New Issue