1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-04 16:30:12 +02:00

simplify Android Observatory config

This just keeps the config key name simple and direct.
This commit is contained in:
Hans-Christoph Steiner 2017-04-10 20:14:18 +02:00
parent f3b55ab0f0
commit e3152e9ef0
2 changed files with 4 additions and 4 deletions

View File

@ -223,7 +223,7 @@ The repository of older versions of applications from the main demo repository.
# If you want to upload the release apk file to androidobservatory.org
#
# uploadto_androidobservatory = False
# androidobservatory = False
# If you want to upload the release apk file to virustotal.com

View File

@ -376,11 +376,11 @@ def main():
if not config.get('awsbucket') \
and not config.get('serverwebroot') \
and not config.get('servergitmirrors') \
and not config.get('uploadto_androidobservatory') \
and not config.get('androidobservatory') \
and not config.get('virustotal_apikey') \
and local_copy_dir is None:
logging.warn('No option set! Edit your config.py to set at least one among:\n'
+ 'serverwebroot, servergitmirrors, local_copy_dir, awsbucket, virustotal_apikey or uploadto_androidobservatory')
+ 'serverwebroot, servergitmirrors, local_copy_dir, awsbucket, virustotal_apikey or androidobservatory')
sys.exit(1)
repo_sections = ['repo']
@ -428,7 +428,7 @@ def main():
update_servergitmirrors(servergitmirrors, repo_section)
if config.get('awsbucket'):
update_awsbucket(repo_section)
if config.get('uploadto_androidobservatory'):
if config.get('androidobservatory'):
upload_to_android_observatory(repo_section)
if config.get('virustotal_apikey'):
upload_to_virustotal(repo_section, config.get('virustotal_apikey'))