mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-08-17 20:00:10 +02: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
@ -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…
Reference in New Issue
Block a user