1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-02 09:10:11 +02:00

Create repo/icons without failure

Fixes fdroid lint CI.
This commit is contained in:
Jochen Sprickerhof 2023-05-12 09:12:28 +02:00
parent 1b765d11e7
commit 5723a1dafe
No known key found for this signature in database
GPG Key ID: 5BFFDCC258E69433

View File

@ -522,7 +522,7 @@ def load_localized_config(name, repodir):
if key == "icon": if key == "icon":
icons_dir = os.path.join(repodir, 'icons') icons_dir = os.path.join(repodir, 'icons')
if not os.path.exists(icons_dir): if not os.path.exists(icons_dir):
os.mkdir(icons_dir) os.makedirs(icons_dir, exist_ok=True)
shutil.copy(os.path.join("config", value), icons_dir) shutil.copy(os.path.join("config", value), icons_dir)
ret[afname][key][locale] = file_entry( ret[afname][key][locale] = file_entry(
os.path.join(icons_dir, value) os.path.join(icons_dir, value)