wok-current rev 3043
locale-*: Keep current config when on upgrade or install
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 12 23:24:55 2009 +0200 (2009-05-12) |
parents | 572390af7b05 |
children | 5cd52170a157 |
files | locale-cs/receipt locale-de/receipt locale-fr/receipt locale-hu/receipt locale-id/receipt locale-it/receipt locale-pt/receipt locale-ru/receipt locale-sl/receipt locale-zh_CN/receipt locale-zh_TW/receipt |
line diff
1.1 --- a/locale-cs/receipt Tue May 12 16:59:49 2009 +0000 1.2 +++ b/locale-cs/receipt Tue May 12 23:24:55 2009 +0200 1.3 @@ -50,18 +50,6 @@ 1.4 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 1.5 } 1.6 1.7 -# Post install to configure default locale. 1.8 -post_install() 1.9 -{ 1.10 - local root 1.11 - root=$1 1.12 - # locale.conf 1.13 - if [ -s $root/etc/locale.conf ]; then 1.14 - echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf 1.15 - echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf 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 {
2.1 --- a/locale-de/receipt Tue May 12 16:59:49 2009 +0000 2.2 +++ b/locale-de/receipt Tue May 12 23:24:55 2009 +0200 2.3 @@ -48,18 +48,6 @@ 2.4 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 2.5 } 2.6 2.7 -# Post install to configure default locale. 2.8 -post_install() 2.9 -{ 2.10 - local root 2.11 - root=$1 2.12 - # locale.conf 2.13 - if [ -s $root/etc/locale.conf ]; then 2.14 - echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf 2.15 - echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf 2.16 - fi 2.17 -} 2.18 - 2.19 # Back to C if it's the last used locale. 2.20 post_remove() 2.21 {
3.1 --- a/locale-fr/receipt Tue May 12 16:59:49 2009 +0000 3.2 +++ b/locale-fr/receipt Tue May 12 23:24:55 2009 +0200 3.3 @@ -52,18 +52,6 @@ 3.4 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 3.5 } 3.6 3.7 -# Post install to configure default locale. 3.8 -post_install() 3.9 -{ 3.10 - local root 3.11 - root=$1 3.12 - # locale.conf 3.13 - if [ -s $root/etc/locale.conf ]; then 3.14 - echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf 3.15 - echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf 3.16 - fi 3.17 -} 3.18 - 3.19 # Back to C if it's the last used locale. 3.20 post_remove() 3.21 {
4.1 --- a/locale-hu/receipt Tue May 12 16:59:49 2009 +0000 4.2 +++ b/locale-hu/receipt Tue May 12 23:24:55 2009 +0200 4.3 @@ -48,18 +48,6 @@ 4.4 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 4.5 } 4.6 4.7 -# Post install to configure default locale. 4.8 -post_install() 4.9 -{ 4.10 - local root 4.11 - root=$1 4.12 - # locale.conf 4.13 - if [ -s $root/etc/locale.conf ]; then 4.14 - echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf 4.15 - echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf 4.16 - fi 4.17 -} 4.18 - 4.19 # Back to C if it's the last used locale. 4.20 post_remove() 4.21 {
5.1 --- a/locale-id/receipt Tue May 12 16:59:49 2009 +0000 5.2 +++ b/locale-id/receipt Tue May 12 23:24:55 2009 +0200 5.3 @@ -47,18 +47,6 @@ 5.4 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 5.5 } 5.6 5.7 -# Post install to configure default locale. 5.8 -post_install() 5.9 -{ 5.10 - local root 5.11 - root=$1 5.12 - # locale.conf 5.13 - if [ -s $root/etc/locale.conf ]; then 5.14 - echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf 5.15 - echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf 5.16 - fi 5.17 -} 5.18 - 5.19 # Back to C if it's the last used locale. 5.20 post_remove() 5.21 {
6.1 --- a/locale-it/receipt Tue May 12 16:59:49 2009 +0000 6.2 +++ b/locale-it/receipt Tue May 12 23:24:55 2009 +0200 6.3 @@ -47,18 +47,6 @@ 6.4 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 6.5 } 6.6 6.7 -# Post install to configure default locale. 6.8 -post_install() 6.9 -{ 6.10 - local root 6.11 - root=$1 6.12 - # locale.conf 6.13 - if [ -s $root/etc/locale.conf ]; then 6.14 - echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf 6.15 - echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf 6.16 - fi 6.17 -} 6.18 - 6.19 # Back to C if it's the last used locale. 6.20 post_remove() 6.21 {
7.1 --- a/locale-pt/receipt Tue May 12 16:59:49 2009 +0000 7.2 +++ b/locale-pt/receipt Tue May 12 23:24:55 2009 +0200 7.3 @@ -52,17 +52,9 @@ 7.4 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 7.5 } 7.6 7.7 -# Post install to configure default locale. 7.8 +# Post install to remove old locale-pt_BR. 7.9 post_install() 7.10 { 7.11 - local root 7.12 - root=$1 7.13 - # locale.conf 7.14 - if [ -s $root/etc/locale.conf ]; then 7.15 - echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf 7.16 - echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf 7.17 - fi 7.18 - # Remove old locale-pt_BR 7.19 if [ -d /var/lib/tazpkg/installed/locale-pt_BR ]; then 7.20 echo "y" | tazpkg remove locale-pt_BR 7.21 fi
8.1 --- a/locale-ru/receipt Tue May 12 16:59:49 2009 +0000 8.2 +++ b/locale-ru/receipt Tue May 12 23:24:55 2009 +0200 8.3 @@ -47,18 +47,6 @@ 8.4 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF.UTF-8 8.5 } 8.6 8.7 -# Post install to configure default locale. 8.8 -post_install() 8.9 -{ 8.10 - local root 8.11 - root=$1 8.12 - # locale.conf 8.13 - if [ -s $root/etc/locale.conf ]; then 8.14 - echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf 8.15 - echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf 8.16 - fi 8.17 -} 8.18 - 8.19 # Back to C if it's the last used locale. 8.20 post_remove() 8.21 {
9.1 --- a/locale-sl/receipt Tue May 12 16:59:49 2009 +0000 9.2 +++ b/locale-sl/receipt Tue May 12 23:24:55 2009 +0200 9.3 @@ -47,18 +47,6 @@ 9.4 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 9.5 } 9.6 9.7 -# Post install to configure default locale. 9.8 -post_install() 9.9 -{ 9.10 - local root 9.11 - root=$1 9.12 - # locale.conf 9.13 - if [ -f $root/etc/locale.conf ]; then 9.14 - echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf 9.15 - echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf 9.16 - fi 9.17 -} 9.18 - 9.19 # Back to C if it's the last used locale. 9.20 post_remove() 9.21 {
10.1 --- a/locale-zh_CN/receipt Tue May 12 16:59:49 2009 +0000 10.2 +++ b/locale-zh_CN/receipt Tue May 12 23:24:55 2009 +0200 10.3 @@ -47,18 +47,6 @@ 10.4 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF.UTF-8 10.5 } 10.6 10.7 -# Post install to configure default locale. 10.8 -post_install() 10.9 -{ 10.10 - local root 10.11 - root=$1 10.12 - # locale.conf 10.13 - if [ -s $root/etc/locale.conf ]; then 10.14 - echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf 10.15 - echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf 10.16 - fi 10.17 -} 10.18 - 10.19 # Back to C if it's the last used locale. 10.20 post_remove() 10.21 {
11.1 --- a/locale-zh_TW/receipt Tue May 12 16:59:49 2009 +0000 11.2 +++ b/locale-zh_TW/receipt Tue May 12 23:24:55 2009 +0200 11.3 @@ -47,18 +47,6 @@ 11.4 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF.UTF-8 11.5 } 11.6 11.7 -# Post install to configure default locale. 11.8 -post_install() 11.9 -{ 11.10 - local root 11.11 - root=$1 11.12 - # locale.conf 11.13 - if [ -s $root/etc/locale.conf ]; then 11.14 - echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf 11.15 - echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf 11.16 - fi 11.17 -} 11.18 - 11.19 # Back to C if it's the last used locale. 11.20 post_remove() 11.21 {