diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-02 13:22:49 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-02 16:15:57 +0000 |
commit | b24d4bcde21b013e48eaffea5f3a70d8b1df1047 (patch) | |
tree | fc28bbf29b186645a3c8832169dde17bbb59962b | |
parent | c547169f7dfe043affc2ddc5ae0a9091379df6de (diff) | |
download | openembedded-core-b24d4bcde21b013e48eaffea5f3a70d8b1df1047.tar.gz openembedded-core-b24d4bcde21b013e48eaffea5f3a70d8b1df1047.tar.bz2 openembedded-core-b24d4bcde21b013e48eaffea5f3a70d8b1df1047.zip |
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>
-rw-r--r-- | meta/classes/image_types.bbclass | 3 |
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) |