From 4fabdf9290f3cf0c97467d7f7ea5db75972be852 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 25 Sep 2025 16:11:55 +0200 Subject: [PATCH] deploy: wire up --checksum option to rclone functionality By default `fdroid deploy` uses the checksum to check for changed files. The rclone code should do the same. --- fdroidserver/deploy.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/fdroidserver/deploy.py b/fdroidserver/deploy.py index cff6e35f..f1dcce21 100644 --- a/fdroidserver/deploy.py +++ b/fdroidserver/deploy.py @@ -115,7 +115,12 @@ def update_awsbucket(repo_section, is_index_only=False, verbose=False, quiet=Fal def update_remote_storage_with_rclone( - repo_section, awsbucket, is_index_only=False, verbose=False, quiet=False + repo_section, + awsbucket, + is_index_only=False, + verbose=False, + quiet=False, + checksum=False, ): """Sync the directory `repo_section` (including subdirectories) to configed cloud services. @@ -205,6 +210,9 @@ def update_remote_storage_with_rclone( if configfilename: rclone_sync_command += ['--config', configfilename] + if checksum: + rclone_sync_command.append('--checksum') + if verbose: rclone_sync_command += ['--verbose'] elif quiet: @@ -1141,7 +1149,12 @@ def main(): awsbucket = config['awsbucket'] index_only = config.get('awsbucket_index_only') update_remote_storage_with_rclone( - repo_section, awsbucket, index_only, options.verbose, options.quiet + repo_section, + awsbucket, + index_only, + options.verbose, + options.quiet, + not options.no_checksum, ) if config.get('androidobservatory'): upload_to_android_observatory(repo_section)