From 5f7203ddf204e5750470d775fe991d964bf94f45 Mon Sep 17 00:00:00 2001 From: g0t mi1k Date: Tue, 30 Jul 2024 15:01:15 +0100 Subject: [PATCH] Only check for ipfs_cid when doing fdroid update --- fdroidserver/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 28ea3736..2c671cbc 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -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']: