Re: Package versioning and upgrades
On Thu, May 07, 2015 at 11:55:11AM +0200, Turbo Fredriksson wrote:
> On Mar 27, 2015, at 10:25 PM, Lennart Sorensen wrote:
>
> > So always use ~wheezy suffix when building for wheezy and use no suffix
> > when building for jessie
>
> This used to work, but doesn't seem to any more… I'm at a loss.
>
> wheezy: 0.6.4-1.1-1-wheezy
> wheezy-daily: 0.6.4-12-0c60cc-wheezy
> jessie: 0.6.4-1.1-1
> jessie-daily: 0.6.4-12-0c60cc
>
> Checking the 'wheezy' and 'jessie' packages:
>
> $ dpkg --compare-versions 0.6.4-1.1-1-wheezy lt 0.6.4-1.1-1; echo $?
> 1
> $ dpkg --compare-versions 0.6.4-12-0c60cc-wheezy lt 0.6.4-12-0c60cc; echo $?
> 1
>
> So ISN'T true! What did I miss?
~ and - is not the same thing. ~ is special in version numbers.
[0]lsorense@caffeine(~)> dpkg --compare-versions 0.6.4-1.1-1-wheezy lt 0.6.4-1.1-1; echo $?
1
[0]lsorense@caffeine(~)> dpkg --compare-versions 0.6.4-1.1-1~wheezy lt 0.6.4-1.1-1; echo $?
0
--
Len Sorensen
Reply to: