feat(docker): host gzip archive downloads

- added config option [mkpkglists] archivedir
    - created by mkpkglists

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-11-10 06:20:22 -08:00
parent abbecf5194
commit 4f7aeafa8d
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
6 changed files with 38 additions and 6 deletions

View file

@ -19,6 +19,7 @@ on the following, right-hand side fields are added to each item.
"""
import gzip
import os
import sys
from collections import defaultdict
@ -29,6 +30,9 @@ import orjson
import aurweb.config
import aurweb.db
archivedir = aurweb.config.get("mkpkglists", "archivedir")
os.makedirs(archivedir, exist_ok=True)
packagesfile = aurweb.config.get('mkpkglists', 'packagesfile')
packagesmetafile = aurweb.config.get('mkpkglists', 'packagesmetafile')
packagesmetaextfile = aurweb.config.get('mkpkglists', 'packagesmetaextfile')