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

Bug#133517: dpkg --compare-versions returns always true



On 12/02/02, Stefan Brink wrote:
> Package: dpkg
> Version: 1.9.18
> Severity: normal

> It seems that dpkg --compare-versions returns always true. This breaks
> for example the modutils.preinst script (version 2.4.13-3 in my case)
> which checks against the kernel-version with the following command:
> dpkg --compare-versions "`uname -r`" lt 2.2.0

> Another example of this errornous behaviour:
> # dpkg --compare-versions 2.2.14 lt 2.2.0; echo $?
> 0
> # dpkg --compare-versions 2.2.14 gt 2.2.0; echo $?
> 0

I'm using here dpkg 1.9.19 and don't see this behaviour:

|[salem:~]-335> dpkg --compare-versions 2.2.14 lt 2.2.0; echo $?       
|zsh: exit 1     dpkg --compare-versions 2.2.14 lt 2.2.0
|1
|[salem:~]-335> dpkg --compare-versions 2.2.14 gt 2.2.0; echo $? 
|0

Also I couldn't find a hint in the changelogs for 1.9.19 that introduced
such a change to dpkg. 

Christian
-- 
           Debian Developer (http://www.debian.org)
1024D/B7CEC7E8 44BD 1F9E A997 3BE2 A44F  96A4 1C98 EEF3 B7CE C7E8

Attachment: pgpJnDI7Yt4YR.pgp
Description: PGP signature


Reply to: