apk version does not handle _alpha, _beta _rc suffixes properly
apk thinks that 2.0_alpha1 is newer than 2.0. This is wrong. Same goes for _beta and _rc suffixes.
$ apk version -t 2.0 2.0_alpha1
<
$ apk version -t 2.0 2.0_rc9
<
I noiced this when abuild 2.0 was not upgraded from 2.0_rc9.
(from redmine: issue id 191, created on 2009-10-25, closed on 2010-01-01)
- Changesets:
- Revision cc4644a5 by Timo Teräs on 2009-10-26T07:33:12Z:
version: fix comparision of pre-suffixes
got broke in 0b9bfa8d52ea7ec2cae562a71932a9cc6e2b9963 which
fixed another corner case. hopefully it's good now. fixes #191.