Commit 4f21045c authored by Cyril Russo's avatar Cyril Russo

Fix keytool not found on MacOSX (when using Java from Apple)

Fix keytool parsing error due to localisation keytool -list command.
Always fallback to english so the parsing makes sense.
parent 05be4bc8
......@@ -118,6 +118,9 @@ The repository of older versions of applications from the main demo repository.
# keystore.
# repo_pubkey = "..."
# The keytool command to run to get Java's keytool version
keytool = "keytool"
# The keystore to use for release keys when building. This needs to be
# somewhere safe and secure, and backed up! The best way to manage these
# sensitive keys is to use a "smartcard" (aka Hardware Security Module). To
......@@ -2907,7 +2907,8 @@ def genkeystore(localconfig):
'-validity', '10000',
'-storepass:env', 'FDROID_KEY_STORE_PASS',
'-keypass:env', 'FDROID_KEY_PASS',
'-dname', localconfig['keydname']], envs=env_vars)
'-dname', localconfig['keydname'],
'-J-Duser.language=en'], envs=env_vars)
if p.returncode != 0:
raise BuildException("Failed to generate key", p.output)
os.chmod(localconfig['keystore'], 0o0600)
......@@ -2916,7 +2917,7 @@ def genkeystore(localconfig):
p = FDroidPopen([config['keytool'], '-list', '-v',
'-keystore', localconfig['keystore'],
'-alias', localconfig['repo_keyalias'],
'-storepass:env', 'FDROID_KEY_STORE_PASS'], envs=env_vars)
'-storepass:env', 'FDROID_KEY_STORE_PASS', '-J-Duser.language=en'], envs=env_vars) + '\n\n')
# get the public key
p = FDroidPopenBytes([config['keytool'], '-exportcert',
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment