mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
abbecf5194
commit
4f7aeafa8d
6 changed files with 38 additions and 6 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue