On Sat Jun 04, 2022 at 10:48:28AM +0000, Klemens Nanni wrote: > On Sat, Jun 04, 2022 at 11:35:39AM +0100, Stuart Henderson wrote: > > The naming makes me thing this is a pre-4.1.0 alpha, so that at some > > point there might be a 4.1.0 release. > > > > $ pkg_check-version xsd-4.1.0.a11 xsd-4.1.0.a12 xsd-4.1.0 > > xsd-*- sorted: xsd-4.1.0 xsd-4.1.0.a11 xsd-4.1.0.a12 > > I'm confused here, pkg_check-version(1) does sort the names as can be > seen in the line above... > > > WARNING: xsd-4.1.0 and xsd-4.1.0.a11 are actually not comparable > > WARNING: xsd-4.1.0 and xsd-4.1.0.a12 are actually not comparable > > but then says it can't compare (and thus not sort) them? > > > Same if I replace the "a11" suffix with something packages-specs(7) > shows as legit suffix: > > $ pkg_check-version xsd-4.1.0alpha12 xsd-4.1.0 xsd-4.1.0alpha11 > xsd-*- sorted: xsd-4.1.0alpha11 xsd-4.1.0alpha12 xsd-4.1.0 > WARNING: xsd-4.1.0alpha11 and xsd-4.1.0alpha12 are actually not > comparable > WARNING: xsd-4.1.0alpha11 and xsd-4.1.0 are actually not comparable > > No matter in which order I pass the three pkgnames, this tool sorts them > the same way... >
Feels wrong but I did not know the tool.