Skip to contentSkip to conversation

toaster: fix banner after customimage package add

PATCH New Elliot Smith 1 participant 1 message Feb 25, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toaster: fix banner after customimage package add

From: Dave Lerner <[email protected]>

Correct formatting of the banner message after adding a package to a custom image.

[YOCTO #9101]

---
 bitbake/lib/toaster/toastergui/static/js/customrecipe.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
bitbake/lib/toaster/toastergui/static/js/customrecipe.js +5 -2
index a1fe486..3c57899 100644
@@ -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");
       }
 
Signature · 12 lines
1.9.3

---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.