mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-17 10:40:12 +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
|
# Read all metadata. Returns a list of 'app' objects (which are dictionaries as
|
||||||
# returned by the parse_metadata function.
|
# returned by the parse_metadata function.
|
||||||
def read_metadata(xref=True, package=None):
|
def read_metadata(xref=True):
|
||||||
apps = []
|
apps = []
|
||||||
|
|
||||||
for basedir in ('metadata', 'tmp'):
|
for basedir in ('metadata', 'tmp'):
|
||||||
@ -430,10 +430,9 @@ def read_metadata(xref=True, package=None):
|
|||||||
os.makedirs(basedir)
|
os.makedirs(basedir)
|
||||||
|
|
||||||
for metafile in sorted(glob.glob(os.path.join('metadata', '*.txt'))):
|
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)
|
||||||
appinfo = parse_metadata(metafile)
|
check_metadata(appinfo)
|
||||||
check_metadata(appinfo)
|
apps.append(appinfo)
|
||||||
apps.append(appinfo)
|
|
||||||
|
|
||||||
if xref:
|
if xref:
|
||||||
# Parse all descriptions at load time, just to ensure cross-referencing
|
# Parse all descriptions at load time, just to ensure cross-referencing
|
||||||
|
Loading…
Reference in New Issue
Block a user