Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id EC623E00CB0; Fri, 19 Feb 2016 14:23:24 -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=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [147.11.146.13 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 8DF8AE00CB0 for ; Fri, 19 Feb 2016 14:23:21 -0800 (PST) Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id u1JMNI0E007047 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 19 Feb 2016 14:23:18 -0800 (PST) Received: from ord-dlerner-d8.corp.ad.wrs.com (128.224.20.33) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.248.2; Fri, 19 Feb 2016 14:23:17 -0800 From: Dave Lerner To: , , Date: Fri, 19 Feb 2016 16:23:07 -0600 Message-ID: <1455920587-25985-2-git-send-email-dave.lerner@windriver.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1455920587-25985-1-git-send-email-dave.lerner@windriver.com> References: <1455920587-25985-1-git-send-email-dave.lerner@windriver.com> MIME-Version: 1.0 Subject: [PATCH 1/1] 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: Fri, 19 Feb 2016 22:23:25 -0000 Content-Type: text/plain Correct formatting of the banner message after adding a package to a custom image. Also, correct the tracking of dependent packages for the added package, adding them to the set of packages appended to the base image rather than the set originally included the base image. [YOCTO #9101] Signed-off-by: Dave Lerner --- bitbake/lib/toaster/toastergui/static/js/customrecipe.js | 7 +++++-- bitbake/lib/toaster/toastergui/views.py | 2 +- 2 files changed, 6 insertions(+), 3 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"); } diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index dfa256e..83ba536 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py @@ -2644,7 +2644,7 @@ if True: cust_package = CustomImagePackage.objects.get( name=dep.depends_on.name) - recipe.includes_set.add(cust_package) + recipe.appends_set.add(cust_package) except: logger.warning("Could not add package's suggested" "dependencies to the list") -- 1.9.1