Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mail.openembedded.org (Postfix) with ESMTP id 83F5077254 for ; Thu, 25 Feb 2016 14:25:02 +0000 (UTC) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 25 Feb 2016 06:24:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,498,1449561600"; d="scan'208";a="894537150" Received: from unknown (HELO lp.ger.corp.intel.com) ([10.252.2.6]) by orsmga001.jf.intel.com with ESMTP; 25 Feb 2016 06:24:55 -0800 From: Elliot Smith To: bitbake-devel@lists.openembedded.org Date: Thu, 25 Feb 2016 14:24:49 +0000 Message-Id: <1456410289-31796-1-git-send-email-elliot.smith@intel.com> X-Mailer: git-send-email 1.9.3 Cc: Dave Lerner Subject: [PATCH] toaster: fix banner after customimage package add X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2016 14:25:04 -0000 From: Dave Lerner Correct formatting of the banner message after adding a package to a custom image. [YOCTO #9101] Signed-off-by: Dave Lerner Signed-off-by: Elliot Smith --- 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 += "" + (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"); } -- 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.