[SCM] Debian package checker branch, master, updated. 2.3.1-26-g7928943
The following commit has been merged in the master branch:
commit 73eeeda0216c2b7f4a4e6f8d5c63f2faf5f09597
Author: Raphael Geissert <atomo64@gmail.com>
Date: Wed Jan 27 10:50:23 2010 -0600
Only attempt to generate a locale if not using locales-all
If locales-all is installed it is not possible to generate a custom
locale.
Additionally fix a bug which would make the postinst generate a new
locale on every upgrade even when one was already generated.
diff --git a/debian/postinst b/debian/postinst
index 63b7fec..c7f773e 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -5,7 +5,8 @@
set -e
-if [ ! -f '/var/lib/lintian/locale/en_US.UTF-8/LC_CTYPE' ] ; then
+if [ ! -f '/var/lib/lintian/locale/LC_CTYPE' ] &&
+ [ -f /usr/share/locale/locale.alias ]; then
echo 'Generating en_US.UTF-8 locale for internal Lintian use....'
mkdir -p /var/lib/lintian/locale
if ! localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias \
--
Debian package checker
Reply to: