diff options
author | Jan Holesovsky <kendy@collabora.com> | 2018-12-17 12:24:53 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2019-01-22 15:25:39 +0100 |
commit | d7b4166fb90828411bb2ff54130ffff9ba04fa9a (patch) | |
tree | 993261d66fcb0bedc721d6cfff4d1424b9c3f098 /solenv | |
parent | ac97be7a81370289b2e82705952eea80ba00fc68 (diff) |
postprocess: Some .svg images were missing previously.
Change-Id: I6c42b1f94f6510e42049bc7c7fc040f17e6edae6
Diffstat (limited to 'solenv')
-rwxr-xr-x | solenv/bin/pack_images.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/solenv/bin/pack_images.py b/solenv/bin/pack_images.py index 8e707a08bd11..10d40205b598 100755 --- a/solenv/bin/pack_images.py +++ b/solenv/bin/pack_images.py @@ -519,18 +519,16 @@ def parse_image_list(imagelist_filenames): if line.startswith('%GLOBALRES%'): key = "res/%s" % line.replace('%GLOBALRES%/', '') - if key in global_image_list: - global_image_list[key] += 1 - else: - global_image_list[key] = 0 + global_image_list[key] = True + if key.endswith('.png'): + global_image_list[key[:-4] + '.svg'] = True continue if line.startswith('%MODULE%'): key = line.replace('%MODULE%/', '') - if key in global_image_list: - module_image_list[key] += 1 - else: - module_image_list[key] = 0 + module_image_list[key] = True + if key.endswith('.png'): + module_image_list[key[:-4] + '.svg'] = True continue LOGGER.error("Cannot parse line %s:%d", imagelist_filename, line_count) |