git.openpandora.org
/
openembedded.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c96d6b4
)
sanity.bbclass: Add check for duplicate entries in PACKAGE_ARCHS
author
Richard Purdie
<rpurdie@linux.intel.com>
Mon, 27 Oct 2008 20:15:59 +0000
(20:15 +0000)
committer
Richard Purdie
<rpurdie@linux.intel.com>
Mon, 27 Oct 2008 20:15:59 +0000
(20:15 +0000)
classes/sanity.bbclass
patch
|
blob
|
history
diff --git
a/classes/sanity.bbclass
b/classes/sanity.bbclass
index
c9effb5
..
027d948
100644
(file)
--- 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)