From ead6691bf718307bc1cde2867262c88e347e7832 Mon Sep 17 00:00:00 2001 From: Angel <1966894-1024mb@users.noreply.gitlab.com> Date: Sun, 14 Jan 2024 18:02:04 -0500 Subject: [PATCH] only check for repo_icon existence --- fdroidserver/update.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/fdroidserver/update.py b/fdroidserver/update.py index cfdd09c0..739a5bc9 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -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: