mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-05-24 16:55:17 -04: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:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user