diff options
author | Jan Holesovsky <kendy@collabora.com> | 2018-12-17 12:24:53 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2019-01-24 14:05:26 +0100 |
commit | a71a33e2f03fd2a56894dc8bce0250623c7a05b4 (patch) | |
tree | f24967f743aec07300da86368b88c739622298ee /solenv | |
parent | 626ae6a6e64d9ea7b5bbf2f22ff7798b54b61384 (diff) |
postprocess: Some .svg images were missing previously.
Change-Id: I6c42b1f94f6510e42049bc7c7fc040f17e6edae6
Reviewed-on: https://gerrit.libreoffice.org/66773
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'solenv')
-rw-r--r-- | 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 71e7b32741b8..0281f4430e1f 100644 --- a/solenv/bin/pack_images.py +++ b/solenv/bin/pack_images.py @@ -518,18 +518,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 module_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) |