[aur-general] aurjson - Adding groups to the infos of a search
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Ahoi, I'm building a AUR wrapper and I would like to display the package groups next to the search results when someone searches for a package like pacman does it for official repos. In the wiki [1] it says that the output of the aur rpc is just a list of info request outputs. But when I'm doing a search [2] I don't get the extra info I get with a info request [3]. What I would need is the "Groups" info. Could this be added to the list of elements that a normal search returns? It would speed up my wrapper alot. Atm I'm doing info requests for every single package that I get in the search request and I really don't like that. :/ [1]: https://wiki.archlinux.org/index.php/AurJson#search_2 [2]: https://aur.archlinux.org/rpc/?v=5&type=search&by=name-desc&arg=unrealtournament [3]: https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=unrealtournament - -- Greetings Ricardo Band https:// www.ricardo.band mailto:// email@ricardo.band -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEhyzgFNiV8yZuI1T5Gp1lfQa1gg4FAlo/AMsACgkQGp1lfQa1 gg4XJw//RaLlxBGfG9cYTMguWJhx6CPOQkSJrT6FJ4is1GnW1WZSgCtMu559N39w PqM/SxFODD58gZYlR9k31wwjoUFb/PujBVF8BDx0ulT5s2d+b45HM2kQkpAUnp66 7T8ww1v/PNcce6rA9wu3jZK64zdDxC8OF3+KJ+HOejCDwGmzBAf70o0rYHQZ5JHW +k//QebFpZmk7uegGTeCHZqX9RmrGfZBUHdtbUrVpijwOmU+qRSmT9e2DXtxvZjE 6hRcVX9MsOuxgjjXvMD37MVKO5ANSuzVOF0vwrbnoi7bh0qcV6iFyn5Ck9aiIn/t EhzCdr7FNlK5/cBMvEBfBvguOFebkckvXj1tO4v3oXOIdvF84U0BU07nZlMOefnp pT8cJICookjlToLj1xNyagKs+h7YYTBJdWLIA3AWzHR+r9k/Eyb3eqRMavGTABVz eq3a/S2umhuzYKEFu51mYnm1ws64Rc2/lDGj/O/Nv8BVZPG8xPHZNh7LzbhrLqcq jmGqoxyAvlDAOo2PHaZvU8gCp0PGlmsmpyTOJhqIQ1g73u0tRreM+qiFekOAy8V9 jNQmTQcZPA+Tp2+nBByo8ba0A5wLkf6ONKYzX8i7tOnSMBILdkmonbb3/zzDpKoY Ni+uVSrmFQnmGMcvNZHfp9JZ7+xZ8FPGmLqOsGIjNa5ibvbT6ac= =kpHV -----END PGP SIGNATURE-----
I'm building a AUR wrapper and I would like to display the package groups next to the search results when someone searches for a package like pacman does it for official repos. In the wiki [1] it says that the output of the aur rpc is just a list of info request outputs. But when I'm doing a search [2] I don't get the extra info I get with a info request [3]. What I would need is the "Groups" info. Could this be added to the list of elements that a normal search returns? It would speed up my wrapper alot. Atm I'm doing info requests for every single package that I get in the search request and I really don't like that. :/
You can use the multiinfo interface, which should allow you to at least perform one request per 150 packages, instead of one. Adding arbitrary fields to the search interface is something that's unlikely to happen. An ideal way would be for clients to access all available AUR metadata. There has been some discussion about this in the past (suggesting the use of zsync). https://lists.archlinux.org/pipermail/aur-dev/2016-April/004027.html Alad
participants (2)
-
Alad Wenter
-
Ricardo Band