error if repo rclone.conf is not referenced in config.yml

This commit is contained in:
thefuture 2025-09-18 08:29:22 +00:00 committed by Hans-Christoph Steiner
parent 1f9fb16844
commit b6d6d46aeb

View file

@ -156,6 +156,8 @@ def update_remote_storage_with_rclone(
elif os.path.exists(EMBEDDED_RCLONE_CONF): elif os.path.exists(EMBEDDED_RCLONE_CONF):
path = EMBEDDED_RCLONE_CONF # in this case, only for display path = EMBEDDED_RCLONE_CONF # in this case, only for display
configfilename = EMBEDDED_RCLONE_CONF configfilename = EMBEDDED_RCLONE_CONF
if not rclone_config:
raise FDroidException(_("'rclone_config' must be set in config.yml!"))
else: else:
configfilename = None configfilename = None
output = subprocess.check_output(['rclone', 'config', 'file'], text=True) output = subprocess.check_output(['rclone', 'config', 'file'], text=True)