Re: Summary[2]: dpkg and alpha/beta versioning
On Wed, 8 Jul 1998, Yann Dirson wrote:
> >
> > Here is a new version compare function that takes into account the ~
> > feature. My tests were:
> >
> > # ver1 ver2 result
> > # -ve = < +ve = >
> > 1.1~pre 1.1 -1
> > 1.1~1pre 1.1~pre -1
> > 1.1~1pre 1.1 -1
> > 1.1~2 1.1~3 1
> > 1.foo~boo 1.fooboo -1
> > 1.foo~1boo 1.foo~boo -1
> [...]
> > The exact syntax it expects is ~xx where xx is an optional digit string. ~
> > alone acts like a single character and compares less than any other
> > character including eos. ~xx acts like a negative digit and compares as
> > you would expect to other digits, ~xx also compares less than eos.
>
> Hm, it seems you give a "negative meaning" to the `~' char, as Giuliano P
> Procida suggested, ie:
>
> 1.1~2 << 1.1~1 << 1.1
Yeah, I thought that's what was decided on. It's pretty simple to get the
alternate meaning, perhaps I'll do that tonight.
Jason
--
To UNSUBSCRIBE, email to debian-policy-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: