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

only check for repo_icon existence

This commit is contained in:
Angel 2024-01-14 18:02:04 -05:00
parent 7ab93617f0
commit ead6691bf7
No known key found for this signature in database
GPG Key ID: 9FBE6953EFB306BE

View File

@ -2202,16 +2202,10 @@ def main():
options.clean = True
# check that icons exist now, rather than fail at the end of `fdroid update`
for k in ['repo_icon', 'archive_icon']:
if k in config:
if k == 'repo_icon':
if not os.path.exists(os.path.join(repodirs[0], 'icons', config[k])):
logging.warning(_('{name} "{section}/icons/{path}" does not exist! Check "config.yml".')
.format(name=k, section=k.split('_')[0], path=config[k]))
elif len(repodirs) == 2:
if not os.path.exists(os.path.join(repodirs[1], 'icons', config[k])):
logging.warning(_('{name} "{section}/icons/{path}" does not exist! Check "config.yml".')
.format(name=k, section=k.split('_')[0], path=config[k]))
if 'repo_icon' in config:
if not os.path.exists(os.path.join(repodirs[0], 'icons', config['repo_icon'])):
logging.warning(_('repo_icon "repo/icons/{path}" does not exist! Check "config.yml".').
format(path=config['repo_icon']))
# if the user asks to create a keystore, do it now, reusing whatever it can
if options.create_key: