diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/mrbsection.js')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/mrbsection.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/mrbsection.js b/bitbake/lib/toaster/toastergui/static/js/mrbsection.js index 73d0935fa5..c0c5fa9589 100644 --- a/bitbake/lib/toaster/toastergui/static/js/mrbsection.js +++ b/bitbake/lib/toaster/toastergui/static/js/mrbsection.js | |||
@@ -61,6 +61,12 @@ function mrbSectionInit(ctx){ | |||
61 | return (cached.recipes_parsed_percentage !== build.recipes_parsed_percentage); | 61 | return (cached.recipes_parsed_percentage !== build.recipes_parsed_percentage); |
62 | } | 62 | } |
63 | 63 | ||
64 | // returns true if the number of repos cloned/to clone changed | ||
65 | function cloneProgressChanged(build) { | ||
66 | var cached = getCached(build); | ||
67 | return (cached.repos_cloned_percentage !== build.repos_cloned_percentage); | ||
68 | } | ||
69 | |||
64 | function refreshMostRecentBuilds(){ | 70 | function refreshMostRecentBuilds(){ |
65 | libtoaster.getMostRecentBuilds( | 71 | libtoaster.getMostRecentBuilds( |
66 | libtoaster.ctx.mostRecentBuildsUrl, | 72 | libtoaster.ctx.mostRecentBuildsUrl, |
@@ -100,6 +106,15 @@ function mrbSectionInit(ctx){ | |||
100 | 106 | ||
101 | container.html(html); | 107 | container.html(html); |
102 | } | 108 | } |
109 | else if (cloneProgressChanged(build)) { | ||
110 | // update the clone progress text | ||
111 | selector = '#repos-cloned-percentage-' + build.id; | ||
112 | $(selector).html(build.repos_cloned_percentage); | ||
113 | |||
114 | // update the recipe progress bar | ||
115 | selector = '#repos-cloned-percentage-bar-' + build.id; | ||
116 | $(selector).width(build.repos_cloned_percentage + '%'); | ||
117 | } | ||
103 | else if (tasksProgressChanged(build)) { | 118 | else if (tasksProgressChanged(build)) { |
104 | // update the task progress text | 119 | // update the task progress text |
105 | selector = '#build-pc-done-' + build.id; | 120 | selector = '#build-pc-done-' + build.id; |