Bug 1423809 - Support localized generated files in the tup backend; r=nalexander

These files fail to build in the tup backend because the --locale
argument is missing and scripts like generate_update_locale.py require a
locale. Since the tup backend currently only supports en-US, we can just
hardcode this argument for now.

MozReview-Commit-ID: 7Js1yd9QB01

--HG--
extra : rebase_source : 387b5cfd0379ae3fd857e8c58722cfbca189e058
This commit is contained in:
Mike Shal 2017-12-08 13:53:44 -05:00
Родитель 3c6759d100
Коммит cc6efb003d
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -331,6 +331,8 @@ class TupOnly(CommonBackend, PartialBackend):
if obj.script and obj.method and obj.relobjdir not in skip_directories:
backend_file.export_shell()
cmd = self._py_action('file_generate')
if obj.localized:
cmd.append('--locale=en-US')
cmd.extend([
obj.script,
obj.method,