1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-11 15:13:27 +02:00

Add "No Source Since:[Version]" field.

I'll document it once we make sure it works fine.
This commit is contained in:
Daniel Martí 2013-05-16 21:45:25 +02:00
parent 9bb4ef0648
commit d44d3863ee
2 changed files with 9 additions and 1 deletions

View File

@ -462,6 +462,7 @@ def parse_metadata(metafile, **kw):
thisinfo['Repo Type'] = ''
thisinfo['Repo'] = ''
thisinfo['Requires Root'] = False
thisinfo['No Source Since'] = ''
# General defaults...
thisinfo['builds'] = []
@ -631,6 +632,9 @@ def write_metadata(dest, app):
writefield('Current Version')
writefield('Current Version Code')
mf.write('\n')
if len(app['No Source Since']) > 0:
writefield('No Source Since')
mf.write('\n')
writecomments(None)
mf.close()

View File

@ -101,6 +101,8 @@ def update_wiki(apps, apks, verbose=False):
wikidata += "We don't have the current version of this app."
else:
wikidata += "We have the current version of this app."
if len(app['No Source Since']) > 0:
wikidata += "This application has been partially or entirely been missing source code since version " + app['No Source Since']
wikidata += " (Check mode: " + app['Update Check Mode'] + ")\n\n"
if len(app['Current Version']) > 0:
wikidata += "The current (recommended) version is " + app['Current Version']
@ -121,7 +123,9 @@ def update_wiki(apps, apks, verbose=False):
wikidata += "Version code: " + str(apk['versioncode']) + '\n'
wikidata += '\n[[Category:' + wikicat + ']]\n'
if validapks == 0 and not app['Disabled']:
if len(app['No Source Since']) > 0:
wikidata += '\n[[Category:Apps that are missing source code]]\n'
elif validapks == 0 and not app['Disabled']:
wikidata += '\n[[Category:Apps with no packages]]\n'
elif cantupdate and not app['Disabled']:
wikidata += "\n[[Category:Apps we can't update]]\n"