Date: Monday, October 14, 2013 @ 07:21:25
  Author: allan
Revision: 196451

only regenerate locales when (possibly) needed

Modified:
  glibc/trunk/PKGBUILD
  glibc/trunk/glibc.install

---------------+
 PKGBUILD      |    2 ++
 glibc.install |    5 ++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2013-10-14 05:14:39 UTC (rev 196450)
+++ PKGBUILD    2013-10-14 05:21:25 UTC (rev 196451)
@@ -4,6 +4,8 @@
 # toolchain build order: 
linux-api-headers->glibc->binutils->gcc->binutils->glibc
 # NOTE: valgrind requires rebuilt with each major glibc version
 
+# NOTE: adjust version in install script when locale files are updated
+
 pkgname=glibc
 pkgver=2.18
 pkgrel=5

Modified: glibc.install
===================================================================
--- glibc.install       2013-10-14 05:14:39 UTC (rev 196450)
+++ glibc.install       2013-10-14 05:21:25 UTC (rev 196451)
@@ -3,8 +3,11 @@
 
 post_upgrade() {
   ldconfig -r .
-  locale-gen
   
+  if [[ $(vercmp 2.18 $2) = 1 ]]; then
+    locale-gen
+  fi
+  
   [[ -x usr/bin/install-info ]] || return 0
   for file in ${filelist[@]}; do
     install-info $infodir/$file.gz $infodir/dir 2> /dev/null

Reply via email to