mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-08 00:10:29 +03:00
fix genkey key listing in fdroid init
FDroidPopen() does not have a way to send to stdin, so we will use the password file for now. In the long run, at least the keypass should always be sent via stdin rather than via a file. Ideally, storepass would be too, but if they are different, then storepass is less important.
This commit is contained in:
parent
ed3bd25bb5
commit
e53092cffa
3 changed files with 6 additions and 2 deletions
|
|
@ -132,6 +132,7 @@ def main():
|
|||
'-storepass:file', config['keystorepassfile'],
|
||||
'-keypass:file', config['keypassfile'],
|
||||
'-dname', config['keydname']])
|
||||
# TODO keypass should be sent via stdin
|
||||
if p.returncode != 0:
|
||||
raise BuildException("Failed to generate key")
|
||||
|
||||
|
|
@ -141,6 +142,7 @@ def main():
|
|||
'-keypass:file', config['keypassfile'], '-sigalg',
|
||||
'MD5withRSA', '-digestalg', 'SHA1',
|
||||
apkfile, keyalias])
|
||||
# TODO keypass should be sent via stdin
|
||||
if p.returncode != 0:
|
||||
raise BuildException("Failed to sign application")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue