Re: [locales] Solving the "debconf is not a registry" issue
On Thu, Apr 24, 2003 at 10:14:32PM +0200, Denis Barbier wrote:
> On Fri, Apr 25, 2003 at 02:22:11AM +0900, GOTO Masanori wrote:
> [...]
> > From my test, there was one bug. If I unselected all locales in the
> > first selection, but it was not reflected into /etc/locale.gen.
>
> Indeed, my logic is broken. The bug is in postinst l.15
> if [ -n "$SELECTED_LOCALES" -a "$SELECTED_LOCALES" != "None" ]; then
> When this test fails, nothing happened. Here is a patch against the
> previous file.
Err, my logic is *really* broken, I forgot to change /etc/locale.gen,
e.g.
> --- postinst.oldpatch 2003-04-24 22:07:44.000000000 +0200
> +++ postinst 2003-04-24 22:08:05.000000000 +0200
> @@ -48,6 +48,8 @@
> # locale-archive before generating new locale data.
> rm -rf /usr/lib/locale/* || true
> /usr/sbin/locale-gen
> + else
if [ -e $LG ]; then
sed -e 's/^[a-zA-Z]/#&/' $LG > $LG.tmp || true
mv -f $LG.tmp $LG
fi
> + rm -rf /usr/lib/locale/* || true
Denis
Reply to: