From c8dd72c7979043ac643c0b86a9f431916115005e Mon Sep 17 00:00:00 2001 From: Dave Lerner Date: Thu, 25 Feb 2016 14:24:49 +0000 Subject: [PATCH] bitbake: toaster: fix banner after customimage package add Correct formatting of the banner message after adding a package to a custom image. [YOCTO #9101] (Bitbake rev: da233005eb8cfa7842cd1a768c16e42aaaa55fad) Signed-off-by: Dave Lerner Signed-off-by: Elliot Smith Signed-off-by: Richard Purdie --- 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 a1fe4862e5..3c57899420 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 += "" + (targetPkg.depsAdded.length + 1) + ""; msg += " packages to " + ctx.recipe.name + ": "; msg += "" + targetPkg.name + " and its dependencies"; @@ -150,7 +151,9 @@ function customRecipePageInit(ctx) { (targetPkg.depsAdded.length + 1) + " packages added"); } else { - msg += ' ' + targetPkg.name + ''; + msg += "added 1"; + msg += " package to " + ctx.recipe.name + ": "; + msg += "" + targetPkg.name + ""; inlineNotify.text("1 package added"); }