4c6052c42a
rpmsort(8) is intended for use in shell scripts. sort(1) is not RPM versioning-aware, and attempting to work around that is fraught. Instead, provide a wrapper around rpmvercmp() using qsort(). Fedora's grub2 has carried a version of this since 2015, and a more complex version was also part of the grubby project (provided at /usr/libexec/grubby/rpm-sort) since 2018. This version has been simplified and adapted to the RPM project. Also-authored-by: Peter Jones <pjones@redhat.com> Signed-off-by: Peter Jones <pjones@redhat.com> Signed-off-by: Robbie Harwood <rharwood@redhat.com> |
||
---|---|---|
.. | ||
elfdeps.c | ||
rpmdeps.c | ||
rpmgraph.c | ||
rpmlua.c | ||
rpmsort.c | ||
rpmuncompress.c |