summaryrefslogtreecommitdiffstats
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:22:49 +0000
commit98bb8f76dd81a1bf5f9213ad51089efecd4985ad (patch)
treed90577b2081a331c7cf670173f47172ee62a2986 /meta
parent1f033532a920217cc52b1af2f36116795d65fff8 (diff)
downloadpoky-98bb8f76dd81a1bf5f9213ad51089efecd4985ad.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). (From OE-Core rev: b24d4bcde21b013e48eaffea5f3a70d8b1df1047) 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):
17 types.append(basetype) 17 types.append(basetype)
18 if basetype not in cimages: 18 if basetype not in cimages:
19 cimages[basetype] = [] 19 cimages[basetype] = []
20 cimages[basetype].append(ctype) 20 if ctype not in cimages[basetype]:
21 cimages[basetype].append(ctype)
21 break 22 break
22 if not basetype and type not in types: 23 if not basetype and type not in types:
23 types.append(type) 24 types.append(type)