On Fri, Jan 06, 2006 at 12:33:09PM +0100, Florian Weimer wrote:
> * Marc Haber:
> > I didn't find any official description short of #150739 and #93386.
> > The semantics are, that 1.0-1~1 is smaller than 1.0-1 but greater than
> > 1.0-0.
> 
> And this does indeed result in a linear ordering?

Probably.

> What happens if there are multiple ~?

They are processed in order.

dpkg --compare-versions handles ~ correctly.

> > This is very useful for creation of backport version numbers.
> 
> Uhm, but this would mean that a bug which is fixed in 1.2.9-1 would
> still be considered present in 1.2.9-1~zg1 because that version is
> smaller.

Well, there are many different uses of the construct. I usually use it
for backports to make sure that the backport replaces the package that
is currently installed, but is replaced by the backport source version
once it reaches the distribution in use.

For example:

At time A, unstable has foo_1.2.9-2, while stable has foo_1.2.9-1. If
my backport is thus named foo_1.2.9-2~zg1, it will replace 1.2.9-1 on
stable, which is intended. When next stable releases and foo_1.2.9-2
reaches stable, this version replaces the backport, which is also
intended.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to