update-locale call added to locale task

This commit is contained in:
Anders Ingemann 2013-08-13 20:38:52 +02:00
parent 6065cd5d2c
commit 8402a3afb2

View file

@ -16,8 +16,12 @@ class GenerateLocale(Task):
search = '# ' + locale_str
sed_i(locale_gen, search, locale_str)
command = ['/usr/sbin/chroot', info.root, '/usr/sbin/locale-gen']
log_check_call(command)
log_check_call(['/usr/sbin/chroot', info.root, '/usr/sbin/locale-gen'])
lang = '{locale}.{charmap}'.format(locale=info.manifest.system['locale'],
charmap=info.manifest.system['charmap'])
log_check_call(['/usr/sbin/chroot', info.root,
'/usr/sbin/update-locale', 'LANG=' + lang])
class SetTimezone(Task):