mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
lint: warn (pedantic) about potentially dangerous auto updates
This commit is contained in:
parent
fe0af55a6a
commit
3662dfd145
1 changed files with 6 additions and 0 deletions
|
|
@ -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']:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue