chiark / gitweb /
Better identify empty licenses
authorDaniel Martí <mvdan@mvdan.cc>
Fri, 28 Mar 2014 10:40:58 +0000 (11:40 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Fri, 28 Mar 2014 10:40:58 +0000 (11:40 +0100)
fdroidserver/lint.py

index 550216c5dda8a704608da4220f4a107b2759546e..13479286908538d5a4ee537ce9d9b21670715ae6 100644 (file)
@@ -160,9 +160,9 @@ def main():
             pwarn("Last used commit '%s' looks like a tag, but Update Check Mode is '%s'" % (
                 lastcommit, app['Update Check Mode']))
 
-        # No license
-        if app['License'] == 'Unknown':
-            warn("License was not properly set")
+        # No proper license
+        if app['License'] in ('Unknown','None',''):
+            warn("License was not set")
 
         # Summary size limit
         summ_chars = len(app['Summary'])