On 2014-05-10, at 01:57 PM, Thiago Macieira <[email protected]> wrote:
> Em sáb 10 maio 2014, às 14:26:44, Sune Vuorela escreveu: >> On 2014-05-09, Keith Gardner <[email protected]> wrote: >>> 2. What semantics should be used for version comparisons? Numerical >>> segments are more clearly defined but when introducing a non-null >>> suffix, >>> many different methods are being proposed. >>> >>> 3. Are there any other versioning semantics that should be >>> supported? >> >> Please look at the version comparison rules that for example dpkg uses. >> Especially tilde. [1] >> >> And special strings (alpha, rc, ..) should not be treated special. > > How do you make 5.3.0-rc1 compare less than 5.3.0? > -- > Thiago Macieira - thiago.macieira (AT) intel.com > Software Architect - Intel Open Source Technology Center > > _______________________________________________ > Development mailing list > [email protected] > http://lists.qt-project.org/mailman/listinfo/development Easy. Empty suffix always compares higher. With all the debate, I'm beginning to think that having distinct formats available to conform to might not be such a bad idea after all (SemVer, RpmVer, Dpkg, Freeform, etc...). -- Jake Petroules - jake.petroules at petroules.com Chief Technology Officer - Petroules Corporation _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
