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:
Hans-Christoph Steiner 2014-04-01 17:37:37 -04:00
parent ed3bd25bb5
commit e53092cffa
3 changed files with 6 additions and 2 deletions

View file

@ -800,6 +800,7 @@ def make_index(apps, apks, repodir, archive, categories):
'-keypass:file', config['keypassfile'],
'-digestalg', 'SHA1', '-sigalg', 'MD5withRSA',
os.path.join(repodir, 'index.jar') , config['repo_keyalias']])
# TODO keypass should be sent via stdin
if p.returncode != 0:
logging.info("Failed to sign index")
sys.exit(1)