From d94cb18f7f17a492c7a948337d7d2d1d0785573f Mon Sep 17 00:00:00 2001
From: Richard Purdie <richard.purdie@linuxfoundation.org>
Date: Fri, 2 Mar 2012 12:29:27 +0000
Subject: image_types: Ensure dependencies for compression types containing
 multiple dots are handled correctly

This ensures dependencies for image types like ext2.gz.u-boot are handled correctly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/classes/image_types.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'meta')

diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index f756c39fc..b2503ead8 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -84,7 +84,7 @@ def imagetypes_getdepends(d):
         basetype = type
         for ctype in ctypes:
             if type.endswith("." + ctype):
-                basetype = type.rsplit(".", 1)[0]
+                basetype = type[:-len("." + ctype)]
                 adddep(d.getVar("COMPRESS_DEPENDS_%s" % ctype, True), deps)
                 break
         adddep(d.getVar('IMAGE_DEPENDS_%s' % basetype, True) , deps)
-- 
cgit v1.2.3