mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
index: keep mirrors in the order specified in config.py
The mirrors are displayed in fdroidclient in the order they are received, and there might be some reason why a repo maintainer wants them in a specific order. The danger is that if the mirrors are set in config.py using "mirrors = {'foo', bar'}" they will have a randomized order since it will be in a set. They should be set using [] or () to have a fixed order.
This commit is contained in:
parent
548f73d988
commit
7798dcf9dd
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ def make(apps, sortedids, apks, repodir, archive):
|
|||
|
||||
mirrorcheckfailed = False
|
||||
mirrors = []
|
||||
for mirror in sorted(common.config.get('mirrors', [])):
|
||||
for mirror in common.config.get('mirrors', []):
|
||||
base = os.path.basename(urllib.parse.urlparse(mirror).path.rstrip('/'))
|
||||
if common.config.get('nonstandardwebroot') is not True and base != 'fdroid':
|
||||
logging.error(_("mirror '%s' does not end with 'fdroid'!") % mirror)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue