1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-19 21:30:10 +01:00

🫏 appeace linter

This commit is contained in:
Michael Pöhn 2024-03-14 13:51:11 +01:00 committed by Hans-Christoph Steiner
parent 293caf5ff9
commit 53185ea2e7

View File

@ -1285,11 +1285,11 @@ def insert_localized_ios_app_metadata(apps_with_packages):
screenshots[lang_code][device_name][screenshot_name] = screenshot
# copy screenshots to repo dir
for lang_code in screenshots.keys():
for device in screenshots[lang_code].keys():
for lang_code, translated_screenshots in screenshots.items():
for device, translated_device_screenthos in translated_screenshots.items():
dest_dir = pathlib.Path('repo') / package_name / lang_code / device
dest_dir.mkdir(mode=0o755, parents=True, exist_ok=True)
for name, path in screenshots[lang_code][device].items():
for name, path in translated_device_screenshots.items():
dest = dest_dir / (name.replace(" ", "_").replace("\t", "_") + path.suffix)
_strip_and_copy_image(str(path), str(dest))