update: stop running icon extraction for the 'archive' section

Do not extract icons in archive, they have not been used there
in a very long time, if ever. And if so, only in specific cases.
This commit is contained in:
Hans-Christoph Steiner
2026-02-27 08:09:24 +01:00
committed by Michael Pöhn
parent 9609cbb082
commit 359587b4ae

View File

@@ -2206,13 +2206,13 @@ def process_apk(apkcache, apkfilename, repodir, package_added_cache, use_date_fr
.format(apkfilename=apkfilename))
return True, None, False
# extract icons from APK zip file
iconfilename = get_old_icon_filename(apk['packageName'], apk['versionCode'])
with zipfile.ZipFile(apkfile, 'r') as apkzip:
empty_densities = extract_apk_icons(iconfilename, apk, apkzip, repodir)
# resize existing icons for densities missing in the APK
fill_missing_icon_densities(empty_densities, iconfilename, apk, repodir)
# Do not extract icons in archive, they have not been used there
# in a very long time, if ever. And if so, only in specific cases.
if repodir == 'repo':
iconfilename = get_old_icon_filename(apk['packageName'], apk['versionCode'])
with zipfile.ZipFile(apkfile, 'r') as apkzip:
empty_densities = extract_apk_icons(iconfilename, apk, apkzip, repodir)
fill_missing_icon_densities(empty_densities, iconfilename, apk, repodir)
apk['added'] = package_added_cache.get(apkfile, use_date_from_apk)