tags 348681 + moreinfo thanks Christoph Berg wrote (18 Jan 2006 13:04:11 +0100) : > [0] [EMAIL PROTECTED] sudo localepurge > /usr/sbin/localepurge: line 158: 2688K: value too great for base (error token > is "2688K")
For my first BSP, I'm having had a look to the code, and it seems that
one of the calls to get_used_space echoes a "human readable" result
instead of plain bytes count. Looking at this function's (conditional)
definition, this can only happen, depending on QUICKNDIRTYCALC
presence:
- either in line 58's `df' call:
set - $(df -P $1); shift $(($# - 6)); echo $3
- or in line 64's `du' call:
set - $(du -s $1)
Since your localepurge/quickndirtycalc debconf variable is set to
true, we are in the first case... but `df -P' is not supposed to
output any "human readable" values, ever.
My naive guess would be that, for any obscure reason I'm not able to
find out, a shell alias for df, defined on your system, is used
by localepurge.
A simple fix would be to replace this `df' call by a `/bin/df' one,
and to do the same for the `du' call bellow.
Christoph, could you please try this suggested fix on your system and
tell us if it works?
Ciao,
--
intrigeri <[EMAIL PROTECTED]>
| gnupg key @ http://intrigeri.boum.org/intrigeri.asc
pgpF7yXcQzBWv.pgp
Description: PGP signature

