[oe-commits] Richard Purdie : image_types: Ensure duplicate compressed types aren' t created

git at git.openembedded.org git at git.openembedded.org
Fri Mar 2 16:25:27 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: b24d4bcde21b013e48eaffea5f3a70d8b1df1047
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=b24d4bcde21b013e48eaffea5f3a70d8b1df1047

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Fri Mar  2 13:22:49 2012 +0000

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 at linuxfoundation.org>

---

 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 681571d..1bf59a5 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)





More information about the Openembedded-commits mailing list