From 6391f204e17e71c66e99194c029d60a452e8c686 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Tue, 20 May 2014 21:07:54 +0100 Subject: [PATCH] Lose the other unused read_metadata parameter --- fdroidserver/metadata.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/fdroidserver/metadata.py b/fdroidserver/metadata.py index a7cfe50e..cbb4a86d 100644 --- a/fdroidserver/metadata.py +++ b/fdroidserver/metadata.py @@ -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