mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
ensure that mirror URLs always include the repodir
Since the mirror URLs are per repo section (repo/archive), the mirror URLs must include the repodir at the end. This was missing for servergitmirrors found by @cde when working on fdroidclient#35
This commit is contained in:
parent
70858bb104
commit
25f96e1911
2 changed files with 8 additions and 3 deletions
|
|
@ -113,8 +113,8 @@ def make(apps, sortedids, apks, repodir, archive):
|
|||
mirrors.append(urllib.parse.urljoin(mirror + '/', urlbasepath))
|
||||
for mirror in common.config.get('servergitmirrors', []):
|
||||
mirror = get_mirror_service_url(mirror)
|
||||
if mirror is not None:
|
||||
mirrors.append(mirror + '/')
|
||||
if mirror:
|
||||
mirrors.append(mirror + '/' + repodir)
|
||||
if mirrorcheckfailed:
|
||||
raise FDroidException("Malformed repository mirrors.")
|
||||
if mirrors:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue