FS#15728 - Add depends and makedepends to the JSON output of http://aur.archlinux.org/rpc.php
Attached to Project:
AUR web interface
Opened by Xyne (Xyne) - Thursday, 30 July 2009, 04:34 GMT
Last edited by Lukas Fleischer (lfleischer) - Thursday, 12 July 2012, 06:00 GMT
Opened by Xyne (Xyne) - Thursday, 30 July 2009, 04:34 GMT
Last edited by Lukas Fleischer (lfleischer) - Thursday, 12 July 2012, 06:00 GMT
|
Details
This is a request to add "depends" and "makedepends" to the
JSON output of
http://aur.archlinux.org/rpc.php
This info can be used by other applications to resolve dependencies without scraping the AUR web interface or downloading the PKGBUILD. If you are worried that this will clutter the output, a new method could be added for this output, such as "fullinfo". Alternatively, the current output of the "info" method could be moved to a "summary" method. Another possibility would be to accept an argument list for the data that info should return, e.g. http://aur.archlinux.org/rpc.php?type=info&arg=foo&show=depends:makedepends:version |
This task depends upon
Closed by Lukas Fleischer (lfleischer)
Thursday, 12 July 2012, 06:00 GMT
Reason for closing: Won't implement
Additional comments about closing: See last comment.
Thursday, 12 July 2012, 06:00 GMT
Reason for closing: Won't implement
Additional comments about closing: See last comment.
I'm sided towards leaving the parsing to the user though.
The second possibility has already been discussed, and it was
decided to just return all info to reduce complex queries which
would have a negative effect on performance.
Aur now returns out of data status, and number of votes. as well as name, description, and coming soon.. category.
There is a separate maintainer search target now. I suppose the main json results could return maintainer too, as that might be relevant.
Not so sure about dependencies...
What's the "LocaltionID" tag for?
The JSON API is not only used for creating AUR package installers. It is also used to create console AUR browsers and that information is useful. If it wasn't then it wouldn't be included on the package page.
Just add a caveat to the RPC page about the unreliability of the dependency parser.