A couple of wiki improvements

This commit is contained in:
Ciaran Gultnieks 2013-11-13 14:56:58 +00:00
parent 0876c52e55
commit 17f6e4d169

View file

@ -79,6 +79,7 @@ def update_wiki(apps, apks):
if 'Maintainer Notes' in app: if 'Maintainer Notes' in app:
wikidata += "=Maintainer Notes=\n" wikidata += "=Maintainer Notes=\n"
wikidata += common.description_wiki(app['Maintainer Notes']) + "\n" wikidata += common.description_wiki(app['Maintainer Notes']) + "\n"
wikidata += "\nMetadata: [https://gitorious.org/f-droid/fdroiddata/source/master:metadata/{0}.txt current] [https://gitorious.org/f-droid/fdroiddata/history/metadata/{0}.txt history]\n".format(app['id'])
# Get a list of all packages for this application... # Get a list of all packages for this application...
apklist = [] apklist = []
@ -112,7 +113,7 @@ def update_wiki(apps, apks):
apklist.append({ apklist.append({
'versioncode': int(thisbuild['vercode']), 'versioncode': int(thisbuild['vercode']),
'version': thisbuild['version'], 'version': thisbuild['version'],
'buildproblem': "The build for this version appears to have failed. Check the build logs." 'buildproblem': "The build for this version appears to have failed. Check the [[{0}/lastbuild|build log]].".format(app['id'])
}) })
# Sort with most recent first... # Sort with most recent first...
apklist = sorted(apklist, key=lambda apk: apk['versioncode'], reverse=True) apklist = sorted(apklist, key=lambda apk: apk['versioncode'], reverse=True)