Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/pkgapi
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-04-12 14:00:46 +0200
committerErich Eckner <git@eckner.net>2019-04-12 14:00:46 +0200
commitb1b6b1b2674a68034c39a3f6dd71abdd59f76ed1 (patch)
tree43ca6cc513cf17d588ef78e9c84c1fe6e9d1ca40 /pkgapi
parentbc47738997114be668da8975b9f4d6d18ff65925 (diff)
pkgapi: knows about pentium4, now
Diffstat (limited to 'pkgapi')
-rw-r--r--pkgapi/pacman-pentium4.conf64
-rw-r--r--pkgapi/pkginfo.php2
2 files changed, 65 insertions, 1 deletions
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(