From ad6eb13bb445039aa6e57f3c266c2ebc7c78c470 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 27 Oct 2008 20:15:59 +0000 Subject: sanity.bbclass: Add check for duplicate entries in PACKAGE_ARCHS --- classes/sanity.bbclass | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'classes/sanity.bbclass') diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass index c9effb5596..027d948fce 100644 --- a/classes/sanity.bbclass +++ b/classes/sanity.bbclass @@ -172,6 +172,16 @@ def check_sanity(e): f.write(distro_pr) f.close() + + # + # Check there aren't duplicates in PACKAGE_ARCHS + # + archs = data.getVar('PACKAGE_ARCHS', e.data, True).split() + for arch in archs: + if archs.count(arch) != 1: + messages = messages + "Error, Your PACKAGE_ARCHS field contains duplicates. Perhaps you set EXTRA_PACKAGE_ARCHS twice accidently through some tune file?\n" + break + if messages != "": raise_sanity_error(messages) -- cgit v1.2.3