[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: version.dfsg



On Friday 14 November 2008 19:33:41 Pau Garcia i Quiles wrote:
> > Why is version 1.0.18a.dfsg considered OLDER than 1.0.18.dfsg?
> >
> > $ dpkg --compare-versions 1.0.18a.dfsg-1 gt 1.0.18.dfsg-1 ; echo $?
> > 1
> >
> > If not adding the ".dfsg", the result is as expected (1.0.18a > 1.0.18) :
> >
> > $ dpkg --compare-versions 1.0.18a-1 gt 1.0.18-1 ; echo $?
> > 0
> >
> > Is that a bug with version numbers which contain ".dfsg", or is it
> > that I don't understand something about versioning?
>
> OK, I've been told in #debian-mentors: . > any letter
> lexicographically. Sorry for the fuss.
So what is the correct way? Use 1.0.18a+dfsg-1 or 1.0.18.a.dfsg-1 or....?

Regards,
Peter


Reply to: