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/pacman-pentium4.conf | 64 +++++++++++++++++++++++++++++++++++++++++++++ pkgapi/pkginfo.php | 2 +- 2 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 pkgapi/pacman-pentium4.conf diff --git a/pkgapi/pacman-pentium4.conf b/pkgapi/pacman-pentium4.conf new file mode 100644 index 0000000..80de595 --- /dev/null +++ b/pkgapi/pacman-pentium4.conf @@ -0,0 +1,64 @@ +# +# /etc/pacman.conf +# +# See the pacman.conf(5) manpage for option and repository directives + +# +# GENERAL OPTIONS +# +[options] +# The following paths are commented out with their default values listed. +# If you wish to use different paths, uncomment and update the paths. +#RootDir = / +DBPath = /var/lib/pacman-pentium4/ +CacheDir = /var/cache/pacman-pentium4/pkg/ +LogFile = /dev/null +#GPGDir = /etc/pacman.d/gnupg/ +#HookDir = /etc/pacman.d/hooks/ +HoldPkg = pacman glibc +#XferCommand = /usr/bin/curl -L -C - -f -o %o %u +#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u +#CleanMethod = KeepInstalled +#UseDelta = 0.7 +Architecture = pentium4 + +# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup +#IgnorePkg = +#IgnoreGroup = + +#NoUpgrade = +#NoExtract = + +# Misc options +#UseSyslog +#Color +#TotalDownload +CheckSpace +#VerbosePkgLists + +# By default, pacman accepts packages signed by keys that its local keyring +# trusts (see pacman-key and its man page), as well as unsigned packages. +SigLevel = Required DatabaseOptional +LocalFileSigLevel = Optional +#RemoteFileSigLevel = Required + +[staging] +Include = /etc/pacman.d/mirrorlist32 + +[community-staging] +Include = /etc/pacman.d/mirrorlist32 + +[testing] +Include = /etc/pacman.d/mirrorlist32 + +[community-testing] +Include = /etc/pacman.d/mirrorlist32 + +[core] +Include = /etc/pacman.d/mirrorlist32 + +[extra] +Include = /etc/pacman.d/mirrorlist32 + +[community] +Include = /etc/pacman.d/mirrorlist32 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