mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-08-16 03:10:09 +02:00
fix PEP9 E713 test for membership should be 'not in'
This commit is contained in:
parent
dfca237329
commit
5780c14df2
@ -157,7 +157,7 @@ def fill_config_defaults(thisconfig):
|
||||
thisconfig['java_paths'][m.group(1)] = d
|
||||
|
||||
for java_version in ('7', '8', '9'):
|
||||
if not java_version in thisconfig['java_paths']:
|
||||
if java_version not in thisconfig['java_paths']:
|
||||
continue
|
||||
java_home = thisconfig['java_paths'][java_version]
|
||||
jarsigner = os.path.join(java_home, 'bin', 'jarsigner')
|
||||
|
@ -40,7 +40,7 @@ def main():
|
||||
|
||||
config = common.read_config(options)
|
||||
|
||||
if not 'jarsigner' in config:
|
||||
if 'jarsigner' not in config:
|
||||
logging.critical('Java jarsigner not found! Install in standard location or set java_paths!')
|
||||
sys.exit(1)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user