wok-6.x diff locale-zh_CN/receipt @ rev 13025

clucene-dev, clucene, drupal, fcitx-skin-default, fcitx-zm, gejengel, hd2u, input-utils, jdk6-jaf, jdk6-jaxp, jdk6-jaxws, kismet, libedit-dev, libedit, linux-module-headers, linux-ocfs2, linux-staging, linux64-ocfs2, linux64-staging, menu-railroad, nfs-utils, ode-dev, openjdk-6-src, runcom, talloc-python, vlc-plugin, xorg-xf86-video-neomagic: fix maintainer
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 11 17:36:31 2012 +0200 (2012-06-11)
parents e63d22f12936
children 919b102812ab
line diff
     1.1 --- a/locale-zh_CN/receipt	Mon May 30 00:54:30 2011 +0200
     1.2 +++ b/locale-zh_CN/receipt	Mon Jun 11 17:36:31 2012 +0200
     1.3 @@ -42,16 +42,20 @@
     1.4  
     1.5  post_install()
     1.6  {
     1.7 -	echo LANG=zh_CN.UTF-8 > /etc/locale.conf
     1.8 -	echo Asia/Shanghai > /etc/TZ
     1.9 -	export TZ=Asia/Shanghai
    1.10 -	hwclock --hctosys
    1.11 +	if [ -z "$1" ]; then
    1.12 +		echo LANG=zh_CN.UTF-8 > /etc/locale.conf
    1.13 +		echo Asia/Shanghai > /etc/TZ
    1.14 +		export TZ=Asia/Shanghai
    1.15 +		hwclock --hctosys
    1.16 +	fi
    1.17  }
    1.18  
    1.19  # Back to C if it's the last used locale.
    1.20  post_remove()
    1.21  {
    1.22 -	if grep -q $LOCALEDEF /etc/locale.conf; then
    1.23 -		echo "LANG=C" > /etc/locale.conf
    1.24 +	if [ -z "$1" ]; then
    1.25 +		if [ $(grep -q $LOCALEDEF /etc/locale.conf) ]; then
    1.26 +			echo "LANG=C" > /etc/locale.conf
    1.27 +		fi
    1.28  	fi
    1.29  }