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.

(From OE-Core rev: d94cb18f7f17a492c7a948337d7d2d1d0785573f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2012-03-02 12:29:27 +00:00
parent 8ac3b74dc9
commit 78ae63423f
1 changed files with 1 additions and 1 deletions

View File

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