Re: Package versioning and upgrades
On Thu, 7 May 2015 11:55:11 +0200,
Turbo Fredriksson<turbo@bayour.com> 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?
Use "&&" instead:
# dpkg --compare-versions 0.6.4-12-0c60cc-wheezy lt 0.6.4-12-0c60cc && echo true
# dpkg --compare-versions 0.6.4-12-0c60cc~wheezy lt 0.6.4-12-0c60cc && echo true
true
http://stackoverflow.com/questions/4510640/command-line-what-is-the-purpose-of
-- Andreas Rönnquist
mailinglists@gusnan.se
gusnan@gusnan.se
Reply to: