summaryrefslogtreecommitdiff
path: root/openembedded/classes/package.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-05-09 16:10:46 +0000
committerRichard Purdie <richard@openedhand.com>2006-05-09 16:10:46 +0000
commit189b9a916b845c90db5e51f62496a13f60936d36 (patch)
treee9227d9f63eea070317afffd41cbcdfed018753f /openembedded/classes/package.bbclass
parent8d41bd1c8f4c36ed9c1c73e0586031af8a0f292c (diff)
downloadopenembedded-core-189b9a916b845c90db5e51f62496a13f60936d36.tar.gz
openembedded-core-189b9a916b845c90db5e51f62496a13f60936d36.tar.bz2
openembedded-core-189b9a916b845c90db5e51f62496a13f60936d36.zip
Sync bbclass files with OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@374 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/classes/package.bbclass')
-rw-r--r--openembedded/classes/package.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/openembedded/classes/package.bbclass b/openembedded/classes/package.bbclass
index fbeabb64b3..9edcc1e5ed 100644
--- a/openembedded/classes/package.bbclass
+++ b/openembedded/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)