summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2006-04-29 22:46:53 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-04-29 22:46:53 +0000
commit3ac118be07b744242133b806053c4ec159592459 (patch)
treeea66741ffacbf030b14eeebaae3a41d7f08a564b
parentfb4bf48db5e1a3bed0ef9e490656357c70ae2088 (diff)
package.bbclass: Add sanity check for duplicates in PACKAGES (bug 674)
-rw-r--r--classes/package.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/classes/package.bbclass b/classes/package.bbclass
index d32cf53828..97e091c254 100644
--- a/classes/package.bbclass
+++ b/classes/package.bbclass
@@ -241,6 +241,14 @@ python populate_packages () {
return 0
return (s[stat.ST_MODE] & stat.S_IEXEC)
+ # Sanity check PACKAGES for duplicates - should be moved to
+ # sanity.bbclass once we have he infrastucture
+ pkgs = []
+ for pkg in packages.split():
+ if pkg in pkgs:
+ bb.error("%s is listed in PACKAGES mutliple times. Undefined behaviour will result." % pkg)
+ pkgs += pkg
+
for pkg in packages.split():
localdata = bb.data.createCopy(d)
root = os.path.join(workdir, "install", pkg)