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

Re: Debian part of a version number when epoch is bumped

On Wed, 2018-02-14 at 11:54 -0200, Henrique de Moraes Holschuh wrote:
> On Wed, 14 Feb 2018, Vincent Bernat wrote:
> > It's not only an infrastructure problem. If you Depends on X (>= 1.8),
> > this will be true with X 1:1.6 as well.
> Only if your program is severely buggy.
> Hint: either it matches dpkg --compare-versions exactly, or it is a
> severe bug.

For extra clarity:

$ if dpkg --compare-versions 1.8 '>=' 1:1.6; then echo 1.8 comes after
1:1.6; else echo no it does not; fi
no it does not

A version with a lower epoch (or no epoch, which is implicitly a zero
epoch) always compares less than one with a higher epoch. This is
regardless of what comes after the epoch in a version number.
Otherwise there would be little point to epochs.

For the gory details, see the policy manual:

Attachment: signature.asc
Description: This is a digitally signed message part

Reply to: