mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
Always run read_srclibs as part of read_metadata
This commit is contained in:
parent
dc8eb49b31
commit
49208b257d
6 changed files with 11 additions and 6 deletions
|
|
@ -25,7 +25,7 @@ import logging
|
|||
|
||||
from collections import OrderedDict
|
||||
|
||||
srclibs = {}
|
||||
srclibs = None
|
||||
|
||||
|
||||
class MetaDataException(Exception):
|
||||
|
|
@ -451,6 +451,11 @@ def read_srclibs():
|
|||
metadata.
|
||||
"""
|
||||
global srclibs
|
||||
|
||||
# They were already loaded
|
||||
if srclibs is not None:
|
||||
return
|
||||
|
||||
srclibs = {}
|
||||
|
||||
srcdir = 'srclibs'
|
||||
|
|
@ -465,6 +470,11 @@ def read_srclibs():
|
|||
# Read all metadata. Returns a list of 'app' objects (which are dictionaries as
|
||||
# returned by the parse_metadata function.
|
||||
def read_metadata(xref=True):
|
||||
|
||||
# Always read the srclibs before the apps, since they can use a srlib as
|
||||
# their source repository.
|
||||
read_srclibs()
|
||||
|
||||
apps = []
|
||||
|
||||
for basedir in ('metadata', 'tmp'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue