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

Bug#241395: libc6: preinst fails for kernel 2.4.23dual



At Mon, 12 Apr 2004 20:54:48 +0200,
Goswin von Brederlow wrote:
> > However, Jeff already put such code into libc.preinst:
> >
> >     if [ "$1" != abort-upgrade ] && [ "`uname -s`" = Linux ]
> >     then
> >         # Test to make sure z < 255, in x.y.z-n form of kernel version
> >         # Also make sure we don't trip on x.y.zFOO-n form
> >         kernel_rev=$(uname -r | tr -- - . | cut -d. -f3 | tr -d [:alpha:])
> 
> That will fail with "2.4.25,foo" but what the heck.
> 
> The problem with the code is that its missing a "":
> 
> mrvn@dual:~$ uname -r | tr -- - . | cut -d. -f3 | tr -d [:alpha:]
> 23dual
> mrvn@dual:~$ uname -r | tr -- - . | cut -d. -f3 | tr -d "[:alpha:]"
> 23

Thanks for your point, I adopt your '[:alpha:]' modification.

> PS: Please fix that so I can update my kernel (which means I loose the
> testcase). :)

It should be fixed with the next -12 :)

Regards,
-- gotom



Reply to: