X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=meta-agl-bsp%2Fclasses%2Fimage.bbclass;h=d3784540ff67fcda63899b13ddef446241faebc0;hb=refs%2Fchanges%2F53%2F11153%2F11;hp=a832fa6713283c20f22b793ef264a01cb61383a8;hpb=91dc17593927f8a325bdbcb2cb2a118263ebfaa9;p=AGL%2Fmeta-agl.git diff --git a/meta-agl-bsp/classes/image.bbclass b/meta-agl-bsp/classes/image.bbclass index a832fa671..d3784540f 100644 --- a/meta-agl-bsp/classes/image.bbclass +++ b/meta-agl-bsp/classes/image.bbclass @@ -454,8 +454,8 @@ python () { rm_tmp_images = set() def gen_conversion_cmds(bt): - for ctype in ctypes: - if bt[bt.find('.') + 1:] == ctype: + for ctype in sorted(ctypes): + if bt.endswith("." + ctype): type = bt[0:-len(ctype) - 1] if type.startswith("debugfs_"): type = type[8:] @@ -485,7 +485,7 @@ python () { # Clean up after applying all conversion commands. Some of them might # use the same input, therefore we cannot delete sooner without applying # some complex dependency analysis. - for image in rm_tmp_images: + for image in sorted(rm_tmp_images): cmds.append("\trm " + image) after = 'do_image'