chiark / gitweb /
lint: warn (pedantic) about potentially dangerous auto updates
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 22 Dec 2014 17:18:07 +0000 (18:18 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 22 Dec 2014 17:18:07 +0000 (18:18 +0100)
fdroidserver/lint.py

index 2a028b7203a64f119a636da742d9b79c2bf6fe88..f6deefbb05f9df497264270b1b9569121928806f 100644 (file)
@@ -183,6 +183,12 @@ def main():
             pwarn("Last used commit '%s' looks like a tag, but Update Check Mode is '%s'" % (
                 curbuild['commit'], app['Update Check Mode']))
 
+        # Dangerous auto updates
+        if curbuild and app['Auto Update Mode'] != 'None':
+            for flag in ['target', 'srclibs', 'scanignore']:
+                if curbuild[flag]:
+                    pwarn("Auto Update Mode is enabled but '%s' is manually set at '%s'" % (flag, curbuild[flag]))
+
         # Summary size limit
         summ_chars = len(app['Summary'])
         if summ_chars > config['char_limits']['Summary']: