install-language-pack: explicitly set PURGE=no (for locale-gen)

Bug #152803 reported by Daniel Hahler
2
Affects Status Importance Assigned to Milestone
belocs-locales-bin (Ubuntu)
Fix Released
Undecided
Martin Pitt

Bug Description

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.

(Additionally, when a locale is given, only this locale should get purged (instead of all). But this changes existing behaviour, is not really necessary to fix this bug and should be a new bug itself probably.)

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

(If you are experiencing this bug: manually running "sudo locale-gen" should fix it until the next language-pack updates)

Revision history for this message
Martin Pitt (pitti) wrote :

Thanks, Daniel.

Changed in belocs-locales-bin:
assignee: nobody → pitti
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package belocs-locales-bin - 2.4-2.2ubuntu6

---------------
belocs-locales-bin (2.4-2.2ubuntu6) hardy; urgency=low

  * sbin/locale-gen, manpages/en/locale-gen.8:
    - Add "--no-purge" command line option to set PURGE=no
  * debian/install-language-pack:
    - Use "--no-purge" to keep the not currently installed files (LP: #152803)

 -- dAniel hAhler <email address hidden> Mon, 15 Oct 2007 03:02:30 +0200

Changed in belocs-locales-bin:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.