move default keystore location to keystore.jks, i.e. in the fdroid repo

This makes `fdroid init` create a complete, self-contained repo in a single
folder.  That makes it easily transferable, backupable, etc.  It also means
that `fdroid update` can add a keystore to an existing unsigned repo
without having to worry about finding the right folder or overwriting any
other existing files.
This commit is contained in:
Hans-Christoph Steiner 2015-04-20 19:29:50 -04:00
parent 4861595288
commit af360199f1
2 changed files with 4 additions and 1 deletions

View file

@ -227,6 +227,8 @@ def main():
elif not os.path.exists(keystore):
# no existing or specified keystore, generate the whole thing
keystoredir = os.path.dirname(keystore)
if keystoredir is None or keystoredir == '':
keystoredir = os.path.join(os.getcwd(), keystoredir)
if not os.path.exists(keystoredir):
os.makedirs(keystoredir, mode=0o700)
password = common.genpassword()