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

feat(deploy): support --index-only option for serverwebroot deployments

This commit is contained in:
proletarius101 2023-12-14 15:21:53 +00:00
parent 2c361f6cee
commit bd62007b54
No known key found for this signature in database

View File

@ -498,6 +498,10 @@ def update_serverwebroot(serverwebroot, repo_section):
]
url = serverwebroot['url']
logging.info('rsyncing ' + repo_section + ' to ' + url)
if options.index_only:
if subprocess.call(rsyncargs + ['--excludes', "*"] + _get_index_includes(repo_section) + [repo_section, url]) != 0:
raise FDroidException()
else:
excludes = _get_index_excludes(repo_section)
if subprocess.call(rsyncargs + excludes + [repo_section, url]) != 0:
raise FDroidException()