Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 2F8E5E00C3B; Fri, 18 Mar 2016 11:05:19 -0700 (PDT) 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 * [192.55.52.88 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 984C9E00BFD for ; Fri, 18 Mar 2016 11:05:16 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP; 18 Mar 2016 11:05:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,356,1455004800"; d="scan'208";a="672015588" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by FMSMGA003.fm.intel.com with ESMTP; 18 Mar 2016 11:05:16 -0700 Received: from irsmsx156.ger.corp.intel.com (10.108.20.68) by IRSMSX106.ger.corp.intel.com (163.33.3.31) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 18 Mar 2016 18:05:14 +0000 Received: from irsmsx109.ger.corp.intel.com ([169.254.13.174]) by IRSMSX156.ger.corp.intel.com ([169.254.3.132]) with mapi id 14.03.0248.002; Fri, 18 Mar 2016 18:05:14 +0000 From: "Barros Pena, Belen" To: "Wood, Michael G" , "toaster@yoctoproject.org" Thread-Topic: [Toaster] [PATCH] toaster: buildinfohelper Create target list for all types of build Thread-Index: AQHRgUC4idPJpB+V20qWx12XRMpl2g== Date: Fri, 18 Mar 2016 18:05:13 +0000 Message-ID: References: <1458067017-11029-1-git-send-email-michael.g.wood@intel.com> In-Reply-To: <1458067017-11029-1-git-send-email-michael.g.wood@intel.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.237.224.32] MIME-Version: 1.0 Subject: Re: [PATCH] toaster: buildinfohelper Create target list for all types of build 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, 18 Mar 2016 18:05:19 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: Content-Transfer-Encoding: quoted-printable On 15/03/2016 18:36, "toaster-bounces@yoctoproject.org on behalf of Michael Wood" wrote: >Create the target list cache for command line builds and toaster >triggered builds. This fixes a regression where the target is not >identified as an image after building as the target cache is empty for >toaster triggered builds > >[YOCTO #9266] This works for me. Image information is back :) Thanks! Bel=E9n > >Signed-off-by: Michael Wood >--- > bitbake/lib/bb/ui/buildinfohelper.py | 15 ++++++++------- > 1 file changed, 8 insertions(+), 7 deletions(-) > >diff --git a/bitbake/lib/bb/ui/buildinfohelper.py >b/bitbake/lib/bb/ui/buildinfohelper.py >index 7805086..28c7353 100644 >--- a/bitbake/lib/bb/ui/buildinfohelper.py >+++ b/bitbake/lib/bb/ui/buildinfohelper.py >@@ -977,15 +977,16 @@ class BuildInfoHelper(object): > event: a TargetsAcquired event with a task property (e.g. >"build") > and a targetsList property (e.g. ["zlib", "dropbear"]) > """ >- if self.internal_state['build'].project.is_default: >- targets =3D map(lambda target: target + ':' + event.task, >event.targetsList) >+ targets =3D map(lambda target: target + ':' + event.task, >+ event.targetsList) >=20 >- target_information =3D { >- 'targets': targets, >- 'build': self.internal_state['build'] >- } >+ target_information =3D { >+ 'targets': targets, >+ 'build': self.internal_state['build'] >+ } >=20 >- self.internal_state['targets'] =3D >self.orm_wrapper.get_or_create_targets(target_information) >+ self.internal_state['targets'] =3D \ >+ self.orm_wrapper.get_or_create_targets(target_information) >=20 > def update_build(self, event): > """ >--=20 >2.5.0 > >--=20 >_______________________________________________ >toaster mailing list >toaster@yoctoproject.org >https://lists.yoctoproject.org/listinfo/toaster