mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-11 15:13:27 +02:00
Lose the other unused read_metadata parameter
This commit is contained in:
parent
720ec22e9a
commit
6391f204e1
@ -422,7 +422,7 @@ def parse_srclib(metafile):
|
||||
|
||||
# Read all metadata. Returns a list of 'app' objects (which are dictionaries as
|
||||
# returned by the parse_metadata function.
|
||||
def read_metadata(xref=True, package=None):
|
||||
def read_metadata(xref=True):
|
||||
apps = []
|
||||
|
||||
for basedir in ('metadata', 'tmp'):
|
||||
@ -430,10 +430,9 @@ def read_metadata(xref=True, package=None):
|
||||
os.makedirs(basedir)
|
||||
|
||||
for metafile in sorted(glob.glob(os.path.join('metadata', '*.txt'))):
|
||||
if package is None or metafile == os.path.join('metadata', package + '.txt'):
|
||||
appinfo = parse_metadata(metafile)
|
||||
check_metadata(appinfo)
|
||||
apps.append(appinfo)
|
||||
appinfo = parse_metadata(metafile)
|
||||
check_metadata(appinfo)
|
||||
apps.append(appinfo)
|
||||
|
||||
if xref:
|
||||
# Parse all descriptions at load time, just to ensure cross-referencing
|
||||
|
Loading…
Reference in New Issue
Block a user