mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
Only check for ipfs_cid when doing fdroid update
This commit is contained in:
parent
680554c1c6
commit
5f7203ddf2
1 changed files with 2 additions and 1 deletions
|
|
@ -366,7 +366,8 @@ def fill_config_defaults(thisconfig):
|
||||||
|
|
||||||
if 'ipfs_cid' not in thisconfig and shutil.which('ipfs_cid'):
|
if 'ipfs_cid' not in thisconfig and shutil.which('ipfs_cid'):
|
||||||
thisconfig['ipfs_cid'] = 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"))
|
logging.debug(_("ipfs_cid not found, skipping CIDv1 generation"))
|
||||||
|
|
||||||
for k in ['ndk_paths', 'java_paths']:
|
for k in ['ndk_paths', 'java_paths']:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue