only set 'No description available' in the old index format

The new index format aims to be a direct representation of the data, then
the clients/website will handle the rest.
This commit is contained in:
Hans-Christoph Steiner 2016-11-25 15:29:37 +01:00
parent 1bc0ec27c0
commit 3afd6ca684
2 changed files with 5 additions and 4 deletions

View file

@ -831,9 +831,6 @@ def post_metadata_parse(app):
build[k] = str(v)
builds.append(build)
if not app.get('Description'):
app['Description'] = 'No description available'
app.builds = sorted_builds(builds)

View file

@ -1159,8 +1159,12 @@ def make_index(apps, sortedids, apks, repodir, archive):
return ("fdroid.app:" + appid, apps[appid].Name)
raise MetaDataException("Cannot resolve app id " + appid)
if app.get('Description'):
description = app.Description
else:
description = 'No description available'
addElement('desc',
metadata.description_html(app.Description, linkres),
metadata.description_html(description, linkres),
doc, apel)
addElement('license', app.License, doc, apel)
if app.Categories: