Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id BA9C8E00E4B; Tue, 23 Aug 2016 03:46:33 -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.93 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id D74DDE00D1E for ; Tue, 23 Aug 2016 03:46:32 -0700 (PDT) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP; 23 Aug 2016 03:46:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,565,1464678000"; d="scan'208";a="159752987" Received: from irsmsx104.ger.corp.intel.com ([163.33.3.159]) by fmsmga004.fm.intel.com with ESMTP; 23 Aug 2016 03:46:31 -0700 Received: from irsmsx155.ger.corp.intel.com (163.33.192.3) by IRSMSX104.ger.corp.intel.com (163.33.3.159) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 23 Aug 2016 11:46:30 +0100 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.113]) by irsmsx155.ger.corp.intel.com ([169.254.14.102]) with mapi id 14.03.0248.002; Tue, 23 Aug 2016 11:46:29 +0100 From: "Barros Pena, Belen" To: "Smith, Elliot" , "toaster@yoctoproject.org" Thread-Topic: [Toaster] [PATCH] buildinfohelper: discover kernel artifacts correctly Thread-Index: AQHR/Sub2tNFzBvj7Um+liMTa1/YXQ== Date: Tue, 23 Aug 2016 10:46:29 +0000 Message-ID: References: <1471945658-9671-1-git-send-email-elliot.smith@intel.com> In-Reply-To: <1471945658-9671-1-git-send-email-elliot.smith@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.6.6.160626 x-originating-ip: [10.103.238.154] MIME-Version: 1.0 Subject: Re: [PATCH] buildinfohelper: discover kernel artifacts correctly 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 Aug 2016 10:46:33 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <2956EC3D3706A540AF100665BE925075@intel.com> Content-Transfer-Encoding: quoted-printable On 23/08/2016 10:47, "toaster-bounces@yoctoproject.org on behalf of Elliot Smith" wrote: >Because some image_license.manifest files contain multiple >FILES lines, and because those lines can sometimes not contain >a list of files (i.e. they look like "FILES:\n"), we were >resetting the list of kernel artifacts when we hit the second >"empty" line. > >Fix by ignoring any FILES line which doesn't list files, and by >appending any files found in a valid FILES line, rather than >overwriting the existing list. > >[YOCTO #10107] This works for me. Thanks! Bel=E9n > >Signed-off-by: Elliot Smith >--- > bitbake/lib/bb/ui/buildinfohelper.py | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) > >diff --git a/bitbake/lib/bb/ui/buildinfohelper.py >b/bitbake/lib/bb/ui/buildinfohelper.py >index a5a42cd..7dbb560 100644 >--- a/bitbake/lib/bb/ui/buildinfohelper.py >+++ b/bitbake/lib/bb/ui/buildinfohelper.py >@@ -1616,7 +1616,10 @@ class BuildInfoHelper(object): > if line.startswith('FILES'): > files_str =3D line.split(':')[1].strip() > files_str =3D re.sub(r' {2,}', ' ', files_str) >- files =3D files_str.split(' ') >+ >+ # ignore lines like "FILES:" with no filenames >+ if files_str: >+ files +=3D files_str.split(' ') > return files >=20 > def _endswith(self, str_to_test, endings): >@@ -1729,9 +1732,9 @@ class BuildInfoHelper(object): > real_image_name, > 'image_license.manifest') >=20 >- # if image_license.manifest exists, we can read the names of >bzImage >- # and modules files for this build from it, then look for >them >- # in the DEPLOY_DIR_IMAGE; note that this file is only >produced >+ # if image_license.manifest exists, we can read the names of >+ # bzImage, modules etc. files for this build from it, then >look for >+ # them in the DEPLOY_DIR_IMAGE; note that this file is only >produced > # if an image file was produced > if os.path.isfile(image_license_manifest_path): > has_files =3D True >--=20 >2.7.4 > >--=20 >_______________________________________________ >toaster mailing list >toaster@yoctoproject.org >https://lists.yoctoproject.org/listinfo/toaster