[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#674022: dpkg: error: --compare-versions takes three arguments: <version> <relation> <version>



On Di, 22 Mai 2012, Daniele Tricoli wrote:
> On Tuesday 22 May 2012 19:50:58 Hilmar Preuße wrote:
> > hille@sid:~ $ echo $old_version
> > 
> > hille@sid:~ $ dpkg --compare-versions $old_version le 2011.20120322-1
> > dpkg: error: --compare-versions takes three arguments: <version>
> > <relation> <version>
> 
> I always used dpkg --compare-versions with strings:
> $ dpkg --compare-versions "$old_version" le "2011.20120322-1" && echo yes
> yes
> 
> Maybe is this the problem?

Quite probably ... I was reading the explanation in the man page
the same way as Hilmar, but obiously you seem to be right.

I changed the code and it will be in the next upload.

Best wishes

Norbert
------------------------------------------------------------------------
Norbert Preining            preining@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan                                 TeX Live & Debian Developer
DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
------------------------------------------------------------------------
THRUPP (vb.)
To hold a ruler on one end on a desk and make the other end go
bbddbbddbbrrbrrrrddrr.
			--- Douglas Adams, The Meaning of Liff


Reply to: