From 257cebba3fc780f70fd63ee50af4f722ac37c18d Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Tue, 15 Oct 2013 09:52:43 -0500
Subject: LinHES-config: mv_locale.py: change LOCALE= to LANG=. closes #932

---
 abs/core/LinHES-config/PKGBUILD       | 4 ++--
 abs/core/LinHES-config/config.install | 2 ++
 abs/core/LinHES-config/mv_locale.py   | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/abs/core/LinHES-config/PKGBUILD b/abs/core/LinHES-config/PKGBUILD
index b28ab94..6a8cba3 100755
--- a/abs/core/LinHES-config/PKGBUILD
+++ b/abs/core/LinHES-config/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=LinHES-config
 pkgver=8.0
-pkgrel=9
+pkgrel=10
 conflicts=(MythVantage-config MythVantage-config-dev LinHES-config-dev LinHes-config )
 pkgdesc="Install and configure your system"
 depends=('bc' 'libstatgrab'  'mysql-python' 'expect' 'curl' 'dnsutils' 'parted'
@@ -170,7 +170,7 @@ md5sums=('c832059cd635359d39a2ac3166ff463c'
          '80685e047993b00161be29e3580f3a40'
          '299c24c0820fc9c483c820db2595e3cb'
          'cf51cb22e23218ae7e9b55cac1ba3a7f'
-         'e4b61402858058f7575b776d62d5ee89'
+         '781f161a79c3188a31c8615b8258b241'
          '540a5b7f63a83ad53d6924c637bfd1c7'
          '2596460462cf6c889cf8f95485537b20'
          'dc3c5270691a62600475705f4cb78b56'
diff --git a/abs/core/LinHES-config/config.install b/abs/core/LinHES-config/config.install
index 2da71ff..c9171a6 100644
--- a/abs/core/LinHES-config/config.install
+++ b/abs/core/LinHES-config/config.install
@@ -38,6 +38,8 @@ post_upgrade() {
        echo "config.xml not found, generating a new one"
        /usr/MythVantage/bin/systemconfig.py -m hostype
     fi
+
+    /usr/MythVantage/bin/systemconfig.py -m locale    
 }
 
 # arg 1:  the old package version
diff --git a/abs/core/LinHES-config/mv_locale.py b/abs/core/LinHES-config/mv_locale.py
index 973be31..172e074 100644
--- a/abs/core/LinHES-config/mv_locale.py
+++ b/abs/core/LinHES-config/mv_locale.py
@@ -57,7 +57,7 @@ def genlocale(locale_list):
 
 def update_locale_conf(locale):
     logging.info("    Updating /etc/locale.conf")
-    line='''LOCALE="%s"''' %locale
+    line='''LANG="%s"''' %locale
     try:
         f = open('/etc/locale.conf',"w")
         f.write(line)
-- 
cgit v0.12

