mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-11 15:13:27 +02:00
chmod keystore after checking whether it was created
On OSX, when Java is not installed, it'll fail to create the keystore, but then give an error from chmod failing. This changes things so that the missing Java is reported instead.
This commit is contained in:
parent
1c1f481fcc
commit
f38619ef5f
@ -2051,9 +2051,9 @@ def genkeystore(localconfig):
|
||||
'-keypass:file', config['keypassfile'],
|
||||
'-dname', localconfig['keydname']])
|
||||
# TODO keypass should be sent via stdin
|
||||
os.chmod(localconfig['keystore'], 0o0600)
|
||||
if p.returncode != 0:
|
||||
raise BuildException("Failed to generate key", p.output)
|
||||
os.chmod(localconfig['keystore'], 0o0600)
|
||||
# now show the lovely key that was just generated
|
||||
p = FDroidPopen(['keytool', '-list', '-v',
|
||||
'-keystore', localconfig['keystore'],
|
||||
|
Loading…
Reference in New Issue
Block a user