mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 14:30:30 +03:00
Lose the other unused read_metadata parameter
This commit is contained in:
parent
720ec22e9a
commit
6391f204e1
1 changed files with 4 additions and 5 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue