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:
Lukas Fleischer 2014-10-10 10:57:47 +02:00
parent 89b0fb8348
commit 725a4778db
3 changed files with 49 additions and 0 deletions

View file

@ -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";