On Mon, Feb 13, 2012 at 11:37:02PM +0900, Charles Plessy wrote:
> Le Mon, Feb 13, 2012 at 07:51:20AM -0600, Dirk Eddelbuettel a écrit :
> > 
> > But I guess as your patch is written, with the "r-base-dev (>= $(shell ...)"
> > we would be ok as we have
> > 
> >    2.14.0-1  (first release)     >=      2.14.0~201110xx-y  (rc release)
> 
> Dear Dirk,
> 
> On top of this, the patch produces a version number that ends with a tilde,
> which is for dpkg a special character that sorts before the empty string.  So
> we will always be safe with pre-releases:
> 
> $ dpkg --compare-versions 2.13.2-1 lt 2.14.0~ && echo true
> true
> $ dpkg --compare-versions 2.14.0~ lt 2.14.0~20111015-1 && echo true
> true
> $ dpkg --compare-versions 2.14.0~ lt 2.14.0 && echo true
> true
> $ dpkg --compare-versions 2.14.0~ lt 2.14.0-1 && echo true
> true

Ahhh, I think I somehow reinvented Charles tilde trick in my previous
mail and now I for sure remember that you previousely told me about
exactly this.  So I think the original patch is safe against the
argument given by Dirk in his original response today (and just forget
about my solution which is not as good as Charles' original code).

Kind regards

      Andreas.

-- 
http://fam-tille.de



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to