mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-04 02:00:11 +02:00
simplify Android Observatory config
This just keeps the config key name simple and direct.
This commit is contained in:
parent
f3b55ab0f0
commit
e3152e9ef0
@ -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
|
# 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
|
# If you want to upload the release apk file to virustotal.com
|
||||||
|
@ -376,11 +376,11 @@ def main():
|
|||||||
if not config.get('awsbucket') \
|
if not config.get('awsbucket') \
|
||||||
and not config.get('serverwebroot') \
|
and not config.get('serverwebroot') \
|
||||||
and not config.get('servergitmirrors') \
|
and not config.get('servergitmirrors') \
|
||||||
and not config.get('uploadto_androidobservatory') \
|
and not config.get('androidobservatory') \
|
||||||
and not config.get('virustotal_apikey') \
|
and not config.get('virustotal_apikey') \
|
||||||
and local_copy_dir is None:
|
and local_copy_dir is None:
|
||||||
logging.warn('No option set! Edit your config.py to set at least one among:\n'
|
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)
|
sys.exit(1)
|
||||||
|
|
||||||
repo_sections = ['repo']
|
repo_sections = ['repo']
|
||||||
@ -428,7 +428,7 @@ def main():
|
|||||||
update_servergitmirrors(servergitmirrors, repo_section)
|
update_servergitmirrors(servergitmirrors, repo_section)
|
||||||
if config.get('awsbucket'):
|
if config.get('awsbucket'):
|
||||||
update_awsbucket(repo_section)
|
update_awsbucket(repo_section)
|
||||||
if config.get('uploadto_androidobservatory'):
|
if config.get('androidobservatory'):
|
||||||
upload_to_android_observatory(repo_section)
|
upload_to_android_observatory(repo_section)
|
||||||
if config.get('virustotal_apikey'):
|
if config.get('virustotal_apikey'):
|
||||||
upload_to_virustotal(repo_section, config.get('virustotal_apikey'))
|
upload_to_virustotal(repo_section, config.get('virustotal_apikey'))
|
||||||
|
Loading…
Reference in New Issue
Block a user