packages: glibc/glibc.spec - run localedb-gen only if $SUPPORTED_LOCALES se...

glen glen at pld-linux.org
Mon Dec 21 15:51:29 CET 2009


Author: glen                         Date: Mon Dec 21 14:51:29 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- run localedb-gen only if $SUPPORTED_LOCALES set (merge from AC-branch)

---- Files affected:
packages/glibc:
   glibc.spec (1.854 -> 1.855) 

---- Diffs:

================================================================
Index: packages/glibc/glibc.spec
diff -u packages/glibc/glibc.spec:1.854 packages/glibc/glibc.spec:1.855
--- packages/glibc/glibc.spec:1.854	Sat Dec 19 23:54:14 2009
+++ packages/glibc/glibc.spec	Mon Dec 21 15:51:23 2009
@@ -1174,7 +1174,12 @@
 %postun	memusage -p /sbin/ldconfig
 
 %post -n localedb-src
-/usr/bin/localedb-gen || :
+SUPPORTED_LOCALES=
+[ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
+[ -f /etc/sysconfig/localedb ] && . /etc/sysconfig/localedb
+if [ "$SUPPORTED_LOCALES" ]; then
+	localedb-gen || :
+fi
 
 %post devel	-p	/sbin/postshell
 -/usr/sbin/fix-info-dir -c %{_infodir}
@@ -1660,6 +1665,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.855  2009/12/21 14:51:23  glen
+- run localedb-gen only if $SUPPORTED_LOCALES set (merge from AC-branch)
+
 Revision 1.854  2009/12/19 22:54:14  arekm
 - up to 2.11.1 released at 8 dec 2009 (no official tarball)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/glibc/glibc.spec?r1=1.854&r2=1.855&f=u



More information about the pld-cvs-commit mailing list