On 2022-10-13 10:31:38 +0100, Pádraig Brady wrote: > This looks to be the same point as discussed in https://bugs.gnu.org/58153 > where a trailing '0' is essentially ignored when sorting, > as per the debian version sorting spec. > > This is surprising, and perhaps we should diverge from the spec > in this regard, but I'm not sure.
I doubt very much that having two revisions "upstream_version" and "upstream_version-0" at the same time is allowed. Since they are regarded as equivalent, this would confuse the system to decide which one should be preferred as the latest version. However, for "sort" or "ls", one may have "foo" and "foo-0" at the same time, and they need to be sorted. For instance, 0 could be regarded as an epsilon. So the sorting in my example would be correct. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)