Bug#156386: fix for both stable and unstable
This bug only manifests itself if the package is installed with apt-get.
The fix is simple:
--- debian/locales/DEBIAN/config.old
+++ debian/locales/DEBIAN/config
@@ -15,7 +15,9 @@
. /usr/share/debconf/confmodule
db_version 2.0
-db_set locales/locales_to_be_generated "${SELECTED_LOCALES}"
+if test $LG != /dev/null; then
+ db_set locales/locales_to_be_generated "${SELECTED_LOCALES}"
+fi
db_subst locales/locales_to_be_generated locales "${SUPPORTED_LOCALES}"
db_capb multiselect
db_input medium locales/locales_to_be_generated || true
Rationalization:
apt-get install runs config twice. So it goes like this:
config: db_set empty, db_input interactive
config: db_set empty, db_input no_interaction
postinst: generate /etc/locale.gen from db_get, run
result: no locales generated
as opposed to dpkg -i:
* config: db_set empty, db_input interactive
* postinst: generate /etc/locale.gen
Setting the locales_to_be_generated empty is bad policy anyway, since
the debconf database may be prefilled by the gentle sysadmin so that he
doesn't have push the buttons on all the workstations he installs.
I only tested the fix on unstable. Woody looks the same, though.
Merry Christmas!
tegla
--
Peter Nagy,
GPG: E54BDFC8/ D90B 981D 50EE F6B1 FD47 5156 5997 047E E54B DFC8
Reply to: