mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
69773a5b58
commit
51fb24ab73
6 changed files with 258 additions and 26 deletions
|
@ -189,7 +189,8 @@ if (!empty($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) {
|
|||
readfile("./$path");
|
||||
break;
|
||||
case "/packages.gz":
|
||||
case "/packages-teapot.json.gz":
|
||||
case "/packages-meta-v1.json.gz":
|
||||
case "/packages-meta-ext-v1.json.gz":
|
||||
case "/pkgbase.gz":
|
||||
case "/users.gz":
|
||||
header("Content-Type: text/plain");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue