1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

Lose the other unused read_metadata parameter

This commit is contained in:
Ciaran Gultnieks 2014-05-20 21:07:54 +01:00
parent 720ec22e9a
commit 6391f204e1

View File

@ -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