mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-21 04:10:37 +02:00
feat(deploy): support index-only mode in libcloud
This commit is contained in:
parent
69a508e762
commit
86524ea56d
@ -239,10 +239,13 @@ def update_awsbucket_libcloud(repo_section):
|
|||||||
if obj.name.startswith(upload_dir + '/'):
|
if obj.name.startswith(upload_dir + '/'):
|
||||||
objs[obj.name] = obj
|
objs[obj.name] = obj
|
||||||
|
|
||||||
for root, dirs, files in os.walk(os.path.join(os.getcwd(), repo_section)):
|
if options.index_only:
|
||||||
for name in files:
|
files_to_upload = _get_index_includes(repo_section)
|
||||||
|
else:
|
||||||
|
files_to_upload = [os.path.join(root, name) for root, dirs, files in os.walk(os.path.join(os.getcwd(), repo_section)) for name in files]
|
||||||
|
|
||||||
|
for file_to_upload in files_to_upload:
|
||||||
upload = False
|
upload = False
|
||||||
file_to_upload = os.path.join(root, name)
|
|
||||||
object_name = 'fdroid/' + os.path.relpath(file_to_upload, os.getcwd())
|
object_name = 'fdroid/' + os.path.relpath(file_to_upload, os.getcwd())
|
||||||
if object_name not in objs:
|
if object_name not in objs:
|
||||||
upload = True
|
upload = True
|
||||||
|
Loading…
Reference in New Issue
Block a user