Implementing #libalpm / #pacman compatible vercmp() in #rustlang tends to get a bit bizarre:
"" < "1"
but "" > "a"
and "1.a001a.1" == "1.a1a.1"
(this is all essentially #rpm behavior btw!)
https://gitlab.archlinux.org/archlinux/alpm/alpm-types/-/merge_requests/14
My thanks go out to @anthraxx for doing such a great job at implementing this for #repod a while back and making implementing this for alpm-types much much more straight forward.
XeroLinux 