mirror of
https://github.com/edera-dev/sprout.git
synced 2026-11-04 21:42:23 +00:00
The '~' check ran after the end-of-string check, so "1~rc1" compared as newer than "1". Per the UAPI version format specification, '~' must be handled first so a pre-release sorts older than the release it precedes. An empty string is kept as the oldest version, matching systemd's strverscmp_improved.