aboutsummaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-02 13:22:49 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-02 16:15:57 +0000
commitb24d4bcde21b013e48eaffea5f3a70d8b1df1047 (patch)
treefc28bbf29b186645a3c8832169dde17bbb59962b /meta
parentc547169f7dfe043affc2ddc5ae0a9091379df6de (diff)
downloadopenembedded-core-contrib-b24d4bcde21b013e48eaffea5f3a70d8b1df1047.tar.gz
image_types: Ensure duplicate compressed types aren't created
This allows IMAGE_FSTYPES = "tar.bz2 tar.bz2" to work (and now is faster since it will only do it once). Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/image_types.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index 681571d483..1bf59a5e3e 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -17,7 +17,8 @@ def get_imagecmds(d):
types.append(basetype)
if basetype not in cimages:
cimages[basetype] = []
- cimages[basetype].append(ctype)
+ if ctype not in cimages[basetype]:
+ cimages[basetype].append(ctype)
break
if not basetype and type not in types:
types.append(type)