Skip to content
Snippets Groups Projects
Verified Commit e5cd3e1e authored by Kevin Morris's avatar Kevin Morris
Browse files

fix(mkpkglists): add all RPC type=search fields to packages-meta-v1


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 and Groups fields
    --all      | Include License, Keywords, Groups, dependencies and
                 relations

When one of these arguments are passed, the script will create
a packages-meta-ext-v1.json.gz, configured via packagesmetaextfile.

Done this way so that there are multiple options for archive;
the roughly 2.4MB basic metadata (-meta-v1) and the
~4-7MB (--extended) / 9.8MB (--all) metadata (-meta-ext-v1).

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

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

This allows users to stream the archive and process packages
line-by-line, during the local storage process.

Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
parent d33845e8
No related branches found
No related tags found
No related merge requests found
Pipeline #12877 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment