Fix keytool not found on MacOSX (when using Java from Apple)
On Mac OSX, I get the following error:
fdroid init
INFO: Generating a new key in "keystore.jks"...
CRITICAL: Unknown exception found!
Traceback (most recent call last):
File "../fdroidserver/fdroid", line 164, in <module>
main()
File "../fdroidserver/fdroid", line 159, in main
raise e
File "../fdroidserver/fdroid", line 138, in main
mod.main()
File "/Users/cyril/tmp/fdroidserver/fdroidserver/init.py", line 240, in main
common.genkeystore(c)
File "/Users/cyril/tmp/fdroidserver/fdroidserver/common.py", line 2902, in genkeystore
p = FDroidPopen([config['keytool'], '-genkey',
KeyError: 'keytool'
It seems that common.py does not find keytool
in its search path (yet, it's in the PATH).
So, let's first update the example config.py
file so to add the keytool = "keytool"
key.
Then, I'm getting error described in #513 (closed) So this commit also fix this error, by running the keytool commands with english localization forced.