From b1b6b1b2674a68034c39a3f6dd71abdd59f76ed1 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 12 Apr 2019 14:00:46 +0200 Subject: pkgapi: knows about pentium4, now --- pkgapi/pkginfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgapi/pkginfo.php') diff --git a/pkgapi/pkginfo.php b/pkgapi/pkginfo.php index 083481a..d9701ec 100644 --- a/pkgapi/pkginfo.php +++ b/pkgapi/pkginfo.php @@ -10,7 +10,7 @@ foreach (array('arch', 'repo', 'pkgname') as $must_have_key) { throw_http_error(400, 'Malformed request', 'Value for ' . $must_have_key . ' is invalid.'); } -if (($_GET['arch'] != 'i486') && ($_GET['arch'] != 'i686')) +if (($_GET['arch'] != 'i486') && ($_GET['arch'] != 'i686') && ($_GET['arch'] != 'pentium4')) throw_http_error(400, 'Malformed request', 'Architecture ' . $_GET['arch'] . ' is unkown.'); $infos = trim( -- cgit v1.2.3-70-g09d2