[Toaster] [PATCH 1/1 Version 2] toaster: fix banner after customimage package add

Smith, Elliot elliot.smith at intel.com
Thu Feb 25 06:25:13 PST 2016


Sent upstream and added to toaster-next.

Elliot

On 24 February 2016 at 10:04, Barros Pena, Belen <
belen.barros.pena at intel.com> wrote:

>
>
> On 23/02/2016 18:03, "toaster-bounces at yoctoproject.org on behalf of Dave
> Lerner" <toaster-bounces at yoctoproject.org on behalf of
> dave.lerner at windriver.com> wrote:
>
> >Correct formatting of the banner message after adding a package to a
> >custom image.
> >
> >[YOCTO #9101]
>
> I've tried several things, but I can no longer see the truncated message
> when adding packages. So this seems to be working for me.
>
> Thanks!
>
> Belén
>
> >
> >Signed-off-by: Dave Lerner <dave.lerner at windriver.com>
> >---
> > bitbake/lib/toaster/toastergui/static/js/customrecipe.js | 7 +++++--
> > 1 file changed, 5 insertions(+), 2 deletions(-)
> >
> >diff --git a/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
> >b/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
> >index a1fe486..3c57899 100644
> >--- a/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
> >+++ b/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
> >@@ -127,7 +127,8 @@ function customRecipePageInit(ctx) {
> >       if (targetPkg.hasOwnProperty('depsAdded') &&
> >         targetPkg.depsAdded.length > 0) {
> >
> >-        msg += "added " + (targetPkg.depsAdded.length + 1);
> >+        msg += "added ";
> >+        msg += "<strong>" + (targetPkg.depsAdded.length + 1) +
> >"</strong>";
> >         msg += " packages to " + ctx.recipe.name + ": ";
> >         msg += "<strong>" + targetPkg.name + "</strong> and its
> >dependencies";
> >
> >@@ -150,7 +151,9 @@ function customRecipePageInit(ctx) {
> >           (targetPkg.depsAdded.length + 1) + " packages added");
> >
> >       } else {
> >-        msg += ' <strong>' + targetPkg.name + '<strong>';
> >+        msg += "added <strong>1</strong>";
> >+        msg += " package to " + ctx.recipe.name + ": ";
> >+        msg += "<strong>" + targetPkg.name + "</strong>";
> >         inlineNotify.text("1 package added");
> >       }
> >
> >--
> >1.9.1
> >
> >--
> >_______________________________________________
> >toaster mailing list
> >toaster at yoctoproject.org
> >https://lists.yoctoproject.org/listinfo/toaster
>
> --
> _______________________________________________
> toaster mailing list
> toaster at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/toaster
>



-- 
Elliot Smith
Software Engineer
Intel Open Source Technology Centre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/toaster/attachments/20160225/9072c680/attachment.html>


More information about the toaster mailing list