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>
This commit is contained in:
Richard Purdie 2012-03-02 13:22:49 +00:00
parent 1f033532a9
commit 98bb8f76dd
1 changed files with 2 additions and 1 deletions

View 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)