mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 15:32:30 +03:00
common: do not crash if the java_paths are not what is expected
Many commands work without the JDK installed, and it is also possible that someone is using only JDK 8 or 9.
This commit is contained in:
parent
7feeaad095
commit
751fd3fb0a
2 changed files with 37 additions and 0 deletions
|
@ -157,6 +157,8 @@ 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']:
|
||||
continue
|
||||
java_home = thisconfig['java_paths'][java_version]
|
||||
jarsigner = os.path.join(java_home, 'bin', 'jarsigner')
|
||||
if os.path.exists(jarsigner):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue