mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 23:10:29 +03:00
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:
parent
4861595288
commit
af360199f1
2 changed files with 4 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue