diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 1 | ||||
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/mrbsection.js | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 0b83b991b9..dbdd060986 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
@@ -415,6 +415,7 @@ class Build(models.Model): | |||
415 | # to show build progress in mrb_section.html | 415 | # to show build progress in mrb_section.html |
416 | for build in recent_builds: | 416 | for build in recent_builds: |
417 | build.percentDone = build.completeper() | 417 | build.percentDone = build.completeper() |
418 | build.outcomeText = build.get_outcome_text() | ||
418 | 419 | ||
419 | return recent_builds | 420 | return recent_builds |
420 | 421 | ||
diff --git a/bitbake/lib/toaster/toastergui/static/js/mrbsection.js b/bitbake/lib/toaster/toastergui/static/js/mrbsection.js index 09117e1daf..9a76ee6407 100644 --- a/bitbake/lib/toaster/toastergui/static/js/mrbsection.js +++ b/bitbake/lib/toaster/toastergui/static/js/mrbsection.js | |||
@@ -57,12 +57,12 @@ function mrbSectionInit(ctx){ | |||
57 | for (var i in prjInfo.builds){ | 57 | for (var i in prjInfo.builds){ |
58 | var build = prjInfo.builds[i]; | 58 | var build = prjInfo.builds[i]; |
59 | 59 | ||
60 | if (build.outcome === "In Progress" || | 60 | if (build.outcomeText === "In Progress" || |
61 | $(".progress .bar").length > 0){ | 61 | $(".progress .bar").length > 0){ |
62 | /* Update the build progress */ | 62 | /* Update the build progress */ |
63 | var percentDone; | 63 | var percentDone; |
64 | 64 | ||
65 | if (build.outcome !== "In Progress"){ | 65 | if (build.outcomeText !== "In Progress"){ |
66 | /* We have to ignore the value when it's Succeeded because it | 66 | /* We have to ignore the value when it's Succeeded because it |
67 | * goes back to 0 | 67 | * goes back to 0 |
68 | */ | 68 | */ |