[Development] Adding support for version number comparisons

Keith Gardner kreios4004 at gmail.com
Sat May 10 21:20:19 CEST 2014


Let's not make it that complicated.  If the suffix is one character, assume
that it stands for a released version.  If the suffix is greater than one
character, assume it references a pre-released version.  With this rule,
comparisons will work properly. "1.0.0beta" < "1.0.0" < "1.0.0b".


On Sat, May 10, 2014 at 1:18 PM, Jake Petroules <
jake.petroules at petroules.com> wrote:

> On 2014-05-10, at 02:11 PM, Thiago Macieira <thiago.macieira at intel.com>
> wrote:
>
> > Em sáb 10 maio 2014, às 14:03:10, Jake Petroules escreveu:
> >> 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...).
> >
> > So how do you mean 1.0.0b compare greater than 1.0.0? (OpenSSL)
> >
> > --
> > Thiago Macieira - thiago.macieira (AT) intel.com
> >  Software Architect - Intel Open Source Technology Center
> >
> > _______________________________________________
> > Development mailing list
> > Development at qt-project.org
> > http://lists.qt-project.org/mailman/listinfo/development
>
>
> OK, if suffix begins with '-', compare < empty, else, compare > empty.
> --
> Jake Petroules - jake.petroules at petroules.com
> Chief Technology Officer - Petroules Corporation
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20140510/278c9b45/attachment.html>


More information about the Development mailing list