1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-09 08:50:11 +01:00

Merge branch 'metadata' into 'master'

--create-metadata: make sure apk[name] is not empty

See merge request !302
This commit is contained in:
Hans-Christoph Steiner 2017-07-06 22:49:26 +00:00
commit b0a8d4163d

View File

@ -1767,7 +1767,7 @@ def main():
# special tricks are not really needed here, this # special tricks are not really needed here, this
# uses the plain YAML lib # uses the plain YAML lib
app = dict() app = dict()
if 'name' in apk: if 'name' in apk and apk['name'] != '':
app['Name'] = apk['name'] app['Name'] = apk['name']
else: else:
logging.warning(apk['packageName'] + ' does not have a name! Using package name instead.') logging.warning(apk['packageName'] + ' does not have a name! Using package name instead.')