1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

lint: warn about None category

This commit is contained in:
Daniel Martí 2015-04-19 17:04:44 +02:00
parent 74f12ab641
commit 504163b170

View File

@ -195,6 +195,10 @@ def main():
if app['Web Site'].lower() == app['Source Code'].lower(): if app['Web Site'].lower() == app['Source Code'].lower():
warn("Website '%s' is just the app's source code link" % app['Web Site']) warn("Website '%s' is just the app's source code link" % app['Web Site'])
# "None" still a category
if 'None' in app['Categories']:
warn("Category 'None' is is still present")
name = app['Name'] or app['Auto Name'] name = app['Name'] or app['Auto Name']
if app['Summary'] and name: if app['Summary'] and name:
if app['Summary'].lower() == name.lower(): if app['Summary'].lower() == name.lower():