From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gate.crashing.org ([63.228.1.57] ident=[U2FsdGVkX19UIAZwakU+Lto9w/aJGVcQCqKYVaFCV6I=]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1QntHQ-0003T9-0i for openembedded-core@lists.openembedded.org; Mon, 01 Aug 2011 16:15:40 +0200 Received: from [IPv6:::1] (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.13.8) with ESMTP id p71EBEDI018884 for ; Mon, 1 Aug 2011 09:11:15 -0500 Mime-Version: 1.0 (Apple Message framework v1084) From: Kumar Gala In-Reply-To: <1312203836.2344.431.camel@rex> Date: Mon, 1 Aug 2011 09:11:16 -0500 Message-Id: References: <1312203836.2344.431.camel@rex> To: Patches and discussions about the oe-core layer X-Mailer: Apple Mail (2.1084) Subject: Re: [PATCH 13/22] sanity: Dont throw a warning if TUNE_PKGARCH is in PACKAGE_ARCHS twice X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2011 14:15:40 -0000 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable On Aug 1, 2011, at 8:03 AM, Richard Purdie wrote: > On Mon, 2011-08-01 at 00:36 -0700, Saul Wold wrote: >> Signed-off-by: Saul Wold >> --- >> meta/classes/sanity.bbclass | 8 +++++--- >> 1 files changed, 5 insertions(+), 3 deletions(-) >>=20 >> diff --git a/meta/classes/sanity.bbclass = b/meta/classes/sanity.bbclass >> index 999e15d..dc11c9e 100644 >> --- a/meta/classes/sanity.bbclass >> +++ b/meta/classes/sanity.bbclass >> @@ -383,12 +383,14 @@ def check_sanity(e): >> dups =3D [] >>=20 >> for pa in pkgarchs.split(): >> - if seen.get(pa, 0) =3D=3D 1: >> + if pa =3D=3D tunepkg: >> + tunefound =3D True >> + if seen.get(pa, 0) =3D=3D 1: >> + pkgarchs.remove(pa) >> + elif seen.get(pa, 0) =3D=3D 1: >> dups.append(pa) >> else: >> seen[pa] =3D 1 >> - if pa =3D=3D tunepkg: >> - tunefound =3D True >>=20 >> if len(dups): >> messages =3D messages + "Error, the PACKAGE_ARCHS variable = contains duplicates. The following archs are listed more than once: %s" = % " ".join(dups) >=20 > How about we don't put duplicates in there in the first place? >=20 > Which board/tune files is this occurring with? Yeah, not sure about this one, I added the sanity check to find this = early. Ran into issues with my PPC patch set and took a while to find = (thus figured a sanity check made sense to check early on). - k=