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.petrou...@petroules.com> wrote:

> On 2014-05-10, at 02:11 PM, Thiago Macieira <thiago.macie...@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@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@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>
_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to