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
Mon Aug 4 09:02:10 UTC 2008


On Sun, Aug 03, 2008 at 11:33:33PM -0300, Henrique de Moraes Holschuh wrote:
> On Sun, 03 Aug 2008, Robert Millan wrote:
> > 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?
> 
> Why would you want something in /sbin to call something in /usr/s?bin ?
> 
> You need to port the algorithm.

update-grub is in /usr.

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