Bug#493389: update-grub: uses wrong ordering algorithm (sorts 1.2.3-foo before 1.2.3.1-foo)

Robert Millan rmh at aybabtu.com
Sun Aug 3 16:24:45 UTC 2008


severity 493389 important
thanks

On Sun, Aug 03, 2008 at 10:12:48AM -0300, Henrique de Moraes Holschuh wrote:
> There is absolutely NO reason for a human to accept that 1.2.3.1-foo is a
> LOWER version number than 1.2.3-foo, simply because it is not.

Okay, I must have gotten the situation wrong then.

> Why don't you guys get the algorithm from apt/dpkg instead of reinventing
> the wheel?  Granted, you may want to simplify it since you won't need epochs
> or "~", but you don't have to find clever ways to implement version sorting
> from the ground up.

Sounds fine. Could you send us a patch to call dpkg --compare-versions from the
script?

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."





More information about the Pkg-grub-devel mailing list