1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-14 21:10:09 +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:
Hans-Christoph Steiner 2014-06-26 15:46:47 -04:00
parent 25f6b0c246
commit 0466d4aa4f

View File

@ -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'):