Signed-off-by: Saul Wold <[email protected]>
---
 meta/classes/sanity.bbclass |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

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 = []
 
     for pa in pkgarchs.split():
-       if seen.get(pa, 0) == 1:
+       if pa == tunepkg:
+           tunefound = True
+            if seen.get(pa, 0) == 1:
+               pkgarchs.remove(pa)
+       elif seen.get(pa, 0) == 1:
            dups.append(pa)
        else:
            seen[pa] = 1
-       if pa == tunepkg:
-           tunefound = True
 
     if len(dups):
        messages = messages + "Error, the PACKAGE_ARCHS variable contains 
duplicates. The following archs are listed more than once: %s" % " ".join(dups)
-- 
1.7.3.4


_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to