mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 23:10:29 +03:00
🫏 appeace linter
This commit is contained in:
parent
293caf5ff9
commit
53185ea2e7
1 changed files with 3 additions and 3 deletions
|
|
@ -1285,11 +1285,11 @@ def insert_localized_ios_app_metadata(apps_with_packages):
|
||||||
screenshots[lang_code][device_name][screenshot_name] = screenshot
|
screenshots[lang_code][device_name][screenshot_name] = screenshot
|
||||||
|
|
||||||
# copy screenshots to repo dir
|
# copy screenshots to repo dir
|
||||||
for lang_code in screenshots.keys():
|
for lang_code, translated_screenshots in screenshots.items():
|
||||||
for device in screenshots[lang_code].keys():
|
for device, translated_device_screenthos in translated_screenshots.items():
|
||||||
dest_dir = pathlib.Path('repo') / package_name / lang_code / device
|
dest_dir = pathlib.Path('repo') / package_name / lang_code / device
|
||||||
dest_dir.mkdir(mode=0o755, parents=True, exist_ok=True)
|
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)
|
dest = dest_dir / (name.replace(" ", "_").replace("\t", "_") + path.suffix)
|
||||||
_strip_and_copy_image(str(path), str(dest))
|
_strip_and_copy_image(str(path), str(dest))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue