summaryrefslogtreecommitdiff
path: root/classes/sanity.bbclass
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2008-10-27 20:43:03 +0000
committerPhil Blundell <philb@gnu.org>2008-10-27 20:43:03 +0000
commit859ecccee890787b33bda996de76589b509178a3 (patch)
tree706a2257231b4e1c3666c5e813c9cdfc1de5c091 /classes/sanity.bbclass
parentb8fd11a4bf335be15e056e2fa91e8022457696e3 (diff)
parentad6eb13bb445039aa6e57f3c266c2ebc7c78c470 (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'classes/sanity.bbclass')
-rw-r--r--classes/sanity.bbclass10
1 files changed, 10 insertions, 0 deletions
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)