[PATCH 2/2] serve.py: add support for 'list-voted'

Lukas Fleischer lfleischer at archlinux.org
Thu Apr 5 14:20:18 UTC 2018


On Tue, 03 Apr 2018 at 21:19:16, Simon Legner wrote:
> This command lists voted packages.
> ---
>  aurweb/git/serve.py     | 18 ++++++++++++++++++
>  test/t1200-git-serve.sh | 22 ++++++++++++++++++++++
>  2 files changed, 40 insertions(+)
> 
> [...]
> @@ -508,6 +521,9 @@ def serve(action, cmdargv, user, privileged, remote_addr):
> 
>          pkgbase = cmdargv[1]
>          pkgbase_unvote(pkgbase, user)
> +    elif action == 'list-voted':
> +        checkarg(cmdargv)
> +        list_voted(user)
> [...]

Thanks. I wonder whether, instead of doing this and adding similar
commands later, we should add a more generic command (`ls`, `list`,
`search`) to replicate the search API we already offer via the RPC
interface?

Regards,
Lukas


More information about the aur-dev mailing list