[PATCH v2] RPC: Allow to search packages by "*depends" fields

Lukas Fleischer lfleischer at archlinux.org
Fri Feb 23 05:57:07 UTC 2018


On Wed, 31 Jan 2018 at 20:54:14, Baptiste Jonglez wrote:
> From: Baptiste Jonglez <git at bitsofnetworks.org>
> 
> It is now possible to search for packages that depend on a given package,
> for instance:
> 
>     /rpc/?v=5&type=search&by=depends&arg=ocaml
> 
> It is similarly possible to match on "makedepends", "checkdepends" and
> "optdepends".
> 
> Signed-off-by: Baptiste Jonglez <git at bitsofnetworks.org>
> ---
> 
> v2:
> - use a subquery instead of a conditional JOIN, to simplify the code
> - avoid hard-coding the new list of allowed fields deep inside the code
> 
>  doc/rpc.txt               |  8 +++++++-
>  web/lib/aurjson.class.php | 21 +++++++++++++++++++--
>  2 files changed, 26 insertions(+), 3 deletions(-)
> [...]

Looks good now. Merged to pu, thanks!


More information about the aur-dev mailing list