[aur-general] Rpc Info Order

Alad Wenter alad at mailbox.org
Sat Feb 17 20:52:37 UTC 2018


On Sat, Feb 17, 2018 at 08:30:58PM +0000, Morgan Adamiec via aur-general wrote:
> Looking around a little more It seems to be a split package thing.
> Split packages always come before normal packages. I feel like
> something like this would be pretty common and found by now so I'm
> leaning on this not being a bug and just the way it is.
> 
> On 17 February 2018 at 20:07, Morgan Adamiec <morganamilo at gmail.com> wrote:
> > Previously when using the Rpc interface info requests would always be
> > returned in order of input but I realised this specific request [1]
> > returns out of order. Is order a thing that was never guaranteed and
> > just happened to be true in 99% of instances or is this a true bug?
> >
Thankfully life is nice and you can just use jq to sort by any
field.

  $ curl -g ... | jq '[.results[]] | sort_by(.Name)'

Alad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/aur-general/attachments/20180217/5842c036/attachment.asc>


More information about the aur-general mailing list