mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
server update: mkdir 'archive' if it does not exist
If `fdroid server update` is run with config that includes an archive, but the 'archive' subdir does not exist, create it. This mirrors the code that is in `fdroid update`. Seems to trivial to move to common.py.
This commit is contained in:
parent
25f6b0c246
commit
0466d4aa4f
1 changed files with 2 additions and 0 deletions
|
@ -250,6 +250,8 @@ def main():
|
|||
repo_sections = ['repo']
|
||||
if config['archive_older'] != 0:
|
||||
repo_sections.append('archive')
|
||||
if not os.path.exists('archive'):
|
||||
os.mkdir('archive')
|
||||
|
||||
if args[0] == 'init':
|
||||
if config.get('serverwebroot'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue