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

Merge branch 'ipfs-cid' into 'master'

Only check for ipfs_cid when doing fdroid update

See merge request fdroid/fdroidserver!1503
This commit is contained in:
Hans-Christoph Steiner 2024-09-25 10:57:55 +00:00
commit ba91b71d60

View File

@ -366,7 +366,8 @@ def fill_config_defaults(thisconfig):
if 'ipfs_cid' not in thisconfig and shutil.which('ipfs_cid'):
thisconfig['ipfs_cid'] = shutil.which('ipfs_cid')
if not thisconfig.get('ipfs_cid'):
cmd = sys.argv[1] if len(sys.argv) >= 2 else ''
if cmd == 'update' and not thisconfig.get('ipfs_cid'):
logging.debug(_("ipfs_cid not found, skipping CIDv1 generation"))
for k in ['ndk_paths', 'java_paths']: