diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-02 12:29:27 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-02 12:31:30 +0000 |
commit | 78ae63423f123f89a5c72c85539e6ed71bd2653d (patch) | |
tree | ca7aab3d2f43690c284bb15af314cd62b4a8d554 /meta | |
parent | 8ac3b74dc9ec968fe85c93e32105e304830736f4 (diff) | |
download | poky-78ae63423f123f89a5c72c85539e6ed71bd2653d.tar.gz |
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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/image_types.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index f756c39fc3..b2503ead84 100644 --- a/meta/classes/image_types.bbclass +++ b/meta/classes/image_types.bbclass | |||
@@ -84,7 +84,7 @@ def imagetypes_getdepends(d): | |||
84 | basetype = type | 84 | basetype = type |
85 | for ctype in ctypes: | 85 | for ctype in ctypes: |
86 | if type.endswith("." + ctype): | 86 | if type.endswith("." + ctype): |
87 | basetype = type.rsplit(".", 1)[0] | 87 | basetype = type[:-len("." + ctype)] |
88 | adddep(d.getVar("COMPRESS_DEPENDS_%s" % ctype, True), deps) | 88 | adddep(d.getVar("COMPRESS_DEPENDS_%s" % ctype, True), deps) |
89 | break | 89 | break |
90 | adddep(d.getVar('IMAGE_DEPENDS_%s' % basetype, True) , deps) | 90 | adddep(d.getVar('IMAGE_DEPENDS_%s' % basetype, True) , deps) |