On May 7, 2015, at 12:17 PM, Andreas Ronnquist wrote:

> # 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

I can't use '~' for the separator, because I want/need full source
each time. I _could_ mess with the options to git-buildpackage etc,
but it's so much simpler (for me and everyone else who want to do
the build on their own) to just use this.

But I've been using dash for 'many months' and as I said, it used
to work.

And I still don't get it - "nothing" is still supposed to be higher than
"something", right?


Besides, how do I go from "0.6.4-1.1-1-wheezy" to "<something>~wheezy"?

    dpkg --compare-versions 0.6.4-1.1-1-wheezy lt 0.6.4-1.1-2~wheezy && echo 
match || echo no match
    no match

Here, the basic part of the version is "0.6.4-1.1-1" versus "0.6.4-1.1-2"
(which to my eyes is supposed to be higher). It's just the 'suffix'
('-wheezy' and '~wheezy') that differs.
--
As soon as you find a product that you really like,
they will stop making it.
- Wilson's Law


--
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/5f79f7db-eba1-4736-bdc1-e34c7734d...@bayour.com

Reply via email to