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

check for the basename of the repo_icon value

This commit is contained in:
Angel 2024-01-25 00:56:30 -05:00
parent 65934f35a8
commit f8c8261630
No known key found for this signature in database
GPG Key ID: 9FBE6953EFB306BE

View File

@ -2302,9 +2302,9 @@ def main():
# check that icons exist now, rather than fail at the end of `fdroid update`
if 'repo_icon' in config:
if not os.path.exists(os.path.join(repodirs[0], 'icons', config['repo_icon'])):
if not os.path.exists(os.path.join(repodirs[0], 'icons', os.path.basename(config['repo_icon']))):
logging.warning(_('repo_icon "repo/icons/{path}" does not exist! Check "config.yml".').
format(path=config['repo_icon']))
format(path=os.path.basename(config['repo_icon'])))
# if the user asks to create a keystore, do it now, reusing whatever it can
if options.create_key: