Comment 0 for bug 152803

Revision history for this message
Daniel Hahler (blueyed) wrote :

Binary package hint: belocs-locales-bin

install-language-pack gets called in the postinst script for all language-pack-XX-base, with the locale of that package.

This calls for trouble, if you have multiple languages installed and set PURGE=yes in /etc/belocs/locale-gen.conf: locale-gen will purge all existing locales, but only create the currently installed ones again.

The fix for this appears to be:
1. Introduce a "--no-purge" command line option for locale-gen
2. Use this option from install-language-pack

Fortunately, the default for PURGE is "no", so you have to manually change this in "locale-gen.conf", but it's a bug nonetheless.

I might file another "wishlist" bug to always regenerate all locales, if PURGE is "yes", but that's something different as far as I can see.