Re: [locales] Solving the "debconf is not a registry" issue
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.
> It Looks really fine. I think it's ok to include in 2.3.2-1 :)
Glad you like it ;)
Denis
--- 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
+ rm -rf /usr/lib/locale/* || true
fi
# Set default LANG environment variable
Reply to: