fix(mkpkglists): improve package meta archive

The SQL logic in this file for package metadata now exactly
reflects RPC's search logic, without searching for specific
packages.

Two command line arguments are available:

    --extended | Include License, Keywords, Groups, relations
                 and dependencies.

When --extended is passed, the script will create a
packages-meta-ext-v1.json.gz, configured via packagesmetaextfile.

Archive JSON is in the following format: line-separated package objects
enclosed in a list:

    [
    {...},
    {...},
    {...}
    ]

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-10-31 16:52:30 -07:00
parent 69773a5b58
commit 51fb24ab73
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
6 changed files with 258 additions and 26 deletions

View file

@ -49,7 +49,8 @@ read the instructions below.
# pacman -S python-mysql-connector python-pygit2 python-srcinfo python-sqlalchemy \
python-bleach python-markdown python-alembic python-jinja \
python-itsdangerous python-authlib python-httpx hypercorn
python-itsdangerous python-authlib python-httpx hypercorn \
python-orjson
# python3 setup.py install
5) Create a new MySQL database and a user and import the aurweb SQL schema: