]> code.ossystems Code Review - openembedded-core.git/commitdiff
image_types: Ensure duplicate compressed types aren't created
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 2 Mar 2012 13:22:49 +0000 (13:22 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 2 Mar 2012 16:15:57 +0000 (16:15 +0000)
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>
meta/classes/image_types.bbclass

index 681571d483c7254ff4abadb4bc9074526a5d55af..1bf59a5e3e94bac5a66483fb342ad8b5ecda442c 100644 (file)
@@ -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)