1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-04 16:30:12 +02:00

Fix get_dir_size call

Regression of 7987c746.
This commit is contained in:
Jochen Sprickerhof 2021-09-11 18:00:52 +02:00 committed by Hans-Christoph Steiner
parent 04ac629bd2
commit 0783f97bed

View File

@ -1038,7 +1038,7 @@ def get_mirror_service_urls(url):
segments.extend([branch, folder])
urls.append('/'.join(segments))
elif hostname == "gitlab.com":
if common.get_dir_size() <= common.GITLAB_COM_PAGES_MAX_SIZE:
if common.get_dir_size(folder) <= common.GITLAB_COM_PAGES_MAX_SIZE:
# Gitlab-like Pages segments "https://user.gitlab.io/repo/folder"
gitlab_pages = ["https:", "", user + ".gitlab.io", repo, folder]
urls.append('/'.join(gitlab_pages))