1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-21 04:10:37 +02:00

chore(deploy): cleanup code

This commit is contained in:
proletarius101 2024-06-04 22:13:54 +08:00
parent 8ec3a2a3db
commit 76a31463b3
No known key found for this signature in database

View File

@ -732,10 +732,7 @@ def update_servergitmirrors(servergitmirrors, repo_section):
# trailing slashes have a meaning in rsync which is not needed here, so # trailing slashes have a meaning in rsync which is not needed here, so
# make sure both paths have exactly one trailing slash # make sure both paths have exactly one trailing slash
if is_index_only: if is_index_only:
files_to_sync = [ files_to_sync = _get_index_file_paths(str(workspace_dir / repo_section))
str(workspace_dir / repo_section / index_file)
for index_file in INDEX_FILES
]
else: else:
files_to_sync = [str(workspace_dir / repo_section).rstrip('/') + '/'] files_to_sync = [str(workspace_dir / repo_section).rstrip('/') + '/']
common.local_rsync( common.local_rsync(