Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 62E42E00B99; Mon, 22 Feb 2016 06:29:58 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [134.134.136.24 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id B4E7BE00A92 for ; Mon, 22 Feb 2016 06:29:53 -0800 (PST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP; 22 Feb 2016 06:29:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,484,1449561600"; d="scan'208";a="657155823" Received: from irsmsx110.ger.corp.intel.com ([163.33.3.25]) by FMSMGA003.fm.intel.com with ESMTP; 22 Feb 2016 06:29:40 -0800 Received: from irsmsx111.ger.corp.intel.com (10.108.20.4) by irsmsx110.ger.corp.intel.com (163.33.3.25) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 22 Feb 2016 14:29:38 +0000 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.31]) by irsmsx111.ger.corp.intel.com ([169.254.2.198]) with mapi id 14.03.0248.002; Mon, 22 Feb 2016 14:29:38 +0000 From: "Barros Pena, Belen" To: "Lerner, David M (Wind River)" , "toaster@yoctoproject.org" , "Wood, Michael G" Thread-Topic: [Toaster] [PATCH 1/1] toaster: fix banner after customimage package add Thread-Index: AQHRbX11rkNGhHv9Akq9PpoufBSqvw== Date: Mon, 22 Feb 2016 14:29:37 +0000 Message-ID: References: <1455920587-25985-1-git-send-email-dave.lerner@windriver.com> <1455920587-25985-2-git-send-email-dave.lerner@windriver.com> In-Reply-To: <1455920587-25985-2-git-send-email-dave.lerner@windriver.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.6.1.160122 x-originating-ip: [10.252.14.74] MIME-Version: 1.0 Subject: Re: [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: Mon, 22 Feb 2016 14:29:58 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <1A08C0360CDC7D4E82CC95ADCDBEF308@intel.com> Content-Transfer-Encoding: quoted-printable On 19/02/2016 23:23, "toaster-bounces@yoctoproject.org on behalf of Dave Lerner" wrote: >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] This seems to be working for me. No incomplete notification messages, and the correct button status for both package added and dependencies. Also, correct build outcome. Thanks! Bel=E9n > >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) { >=20 >- msg +=3D "added " + (targetPkg.depsAdded.length + 1); >+ msg +=3D "added "; >+ msg +=3D "" + (targetPkg.depsAdded.length + 1) + >""; > msg +=3D " packages to " + ctx.recipe.name + ": "; > msg +=3D "" + targetPkg.name + " and its >dependencies"; >=20 >@@ -150,7 +151,9 @@ function customRecipePageInit(ctx) { > (targetPkg.depsAdded.length + 1) + " packages added"); >=20 > } else { >- msg +=3D ' ' + targetPkg.name + ''; >+ msg +=3D "added 1"; >+ msg +=3D " package to " + ctx.recipe.name + ": "; >+ msg +=3D "" + targetPkg.name + ""; > inlineNotify.text("1 package added"); > } >=20 >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 =3D CustomImagePackage.objects.get( > name=3Ddep.depends_on.name) >=20 >- 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") >--=20 >1.9.1 > >--=20 >_______________________________________________ >toaster mailing list >toaster@yoctoproject.org >https://lists.yoctoproject.org/listinfo/toaster