mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Add a script to generate package lists
This can be used to regularly generate lists of packages and package bases that are made available under /packages.gz and /pkgbase.gz, respectively. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
89b0fb8348
commit
725a4778db
3 changed files with 49 additions and 0 deletions
|
@ -164,6 +164,12 @@ if (!empty($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) {
|
|||
header("Content-Type: application/javascript");
|
||||
readfile("./$path");
|
||||
break;
|
||||
case "/packages.gz":
|
||||
case "/pkgbase.gz":
|
||||
header("Content-Type: text/plain");
|
||||
header("Content-Encoding: gzip");
|
||||
readfile("./$path");
|
||||
break;
|
||||
default:
|
||||
header("HTTP/1.0 404 Not Found");
|
||||
include "./404.php";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue