Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id F0C59E00D0B; Tue, 23 Feb 2016 09:04:31 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail5.wrs.com (mail5.windriver.com [192.103.53.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 7F722E00D0B for ; Tue, 23 Feb 2016 09:04:28 -0800 (PST) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id u1NH49lE008625 (version=TLSv1 cipher=AES128-SHA bits=128 verify=OK); Tue, 23 Feb 2016 09:04:09 -0800 Received: from ord-dlerner-d8.wrs.com (172.25.44.108) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.248.2; Tue, 23 Feb 2016 09:04:08 -0800 From: Dave Lerner To: , , Date: Tue, 23 Feb 2016 11:03:59 -0600 Message-ID: <1456247039-16449-2-git-send-email-dave.lerner@windriver.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1456247039-16449-1-git-send-email-dave.lerner@windriver.com> References: <1456247039-16449-1-git-send-email-dave.lerner@windriver.com> MIME-Version: 1.0 Subject: [PATCH 1/1 Version 2] toaster: fix banner after customimage package add X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2016 17:04:32 -0000 Content-Type: text/plain Correct formatting of the banner message after adding a package to a custom image. [YOCTO #9101] Signed-off-by: Dave Lerner --- 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.1