[aur-dev] [PATCH] [FS#28839] Query package details directly by name
dariogiova at gmail.com
Fri Mar 9 08:08:35 EST 2012
Currently package-detail pages are retrieved only with "packages.php?ID=#".
I've attached two possible patches to bug report FS#28839 (
https://bugs.archlinux.org/task/28839 ) that could enable querying by
package name: the first one just adds an elseif in packages.php, the
second one rewrites an if block avoiding some duplication of code.
A new GET variable is introduced, "NAME", and this way package details
could be queried also with "packages.php?NAME=pkgname". If "NAME"
conflicts with an existing variable, possible alternatives are "PNAME",
"PKGNAME", "pkgname" and so on.
Note that the patches use `urldecode($_GET['NAME'])`, so names should be
obviously url-encoded in the string. This is already supported by
This request is the result of the discussion in
More information about the aur-dev