Use local-gen instead of dpkg-reconfigure locales

locale-gen is more direct and does not produce an stderr output
This commit is contained in:
Anders Ingemann 2013-07-14 23:31:34 +02:00
parent 154c438729
commit d0970f77fe

View file

@ -16,7 +16,7 @@ class GenerateLocale(Task):
search = '# ' + locale_str
sed_i(locale_gen, search, locale_str)
command = ['/usr/sbin/chroot', info.root, '/usr/sbin/dpkg-reconfigure', '--priority=critical', 'locales']
command = ['/usr/sbin/chroot', info.root, '/usr/sbin/locale-gen']
log_check_call(command)