1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-08-17 20:00:10 +02:00

metadata: rename parse_metadata() to parse_txt_metadata()

This makes the code clear as support for other metadata formats is added.
This commit is contained in:
Hans-Christoph Steiner 2015-07-20 16:55:15 -07:00
parent 04e6f2ebfd
commit 141e0e24c7
2 changed files with 4 additions and 4 deletions

View File

@ -198,7 +198,7 @@ def main():
sys.exit(1)
# Construct the metadata...
app = metadata.parse_metadata(None)[1]
app = metadata.parse_txt_metadata(None)[1]
app['Web Site'] = website
app['Source Code'] = sourcecode
if issuetracker:

View File

@ -470,7 +470,7 @@ def read_srclibs():
# Read all metadata. Returns a list of 'app' objects (which are dictionaries as
# returned by the parse_metadata function.
# returned by the parse_txt_metadata function.
def read_metadata(xref=True):
# Always read the srclibs before the apps, since they can use a srlib as
@ -484,7 +484,7 @@ def read_metadata(xref=True):
os.makedirs(basedir)
for metafile in sorted(glob.glob(os.path.join('metadata', '*.txt'))):
appid, appinfo = parse_metadata(metafile)
appid, appinfo = parse_txt_metadata(metafile)
check_metadata(appinfo)
apps[appid] = appinfo
@ -584,7 +584,7 @@ def split_list_values(s):
# 'descriptionlines' - original lines of description as formatted in the
# metadata file.
#
def parse_metadata(metafile):
def parse_txt_metadata(metafile):
appid = None
linedesc = None