Mercurial > sat_docs
comparison flatpak/build_manifest.py @ 150:10adfa3f9552
flatpak (build_manifest): icon names depends of app_id, so set cache to be dependant of app_id
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 26 Jun 2019 20:46:53 +0200 |
parents | 64c02902b86a |
children | 6f8c849daf2a |
comparison
equal
deleted
inserted
replaced
149:7738194ee51f | 150:10adfa3f9552 |
---|---|
810 dest_path = f"/app/share/icons/hicolor/{icon['size']}/apps/{app_id}.{suffix}" | 810 dest_path = f"/app/share/icons/hicolor/{icon['size']}/apps/{app_id}.{suffix}" |
811 | 811 |
812 data = file_from_url( | 812 data = file_from_url( |
813 url = icon['url'], | 813 url = icon['url'], |
814 dest = dest_path, | 814 dest = dest_path, |
815 # we have common cache if several manifest use the same icon URL | 815 step_name = f"icon__{app_id}", |
816 step_name = f"icon__{icon}", | |
817 step_message = "retrieving application icon", | 816 step_message = "retrieving application icon", |
818 ) | 817 ) |
819 data[0]['name'] = 'icon' | 818 data[0]['name'] = 'icon' |
820 return data | 819 return data |
821 | 820 |