modules/i18n: fix gettext use of --datadirs param

The previous commit bd2fcb268b
accidentally used the wrong var so the param name was missing,
leading to an error of "unrecognized arguments" for the
datadirs parameter value.
This commit is contained in:
Dan Streetman 2021-10-03 13:53:52 -04:00 committed by Eli Schwartz
parent 7825a6f2ca
commit 3c2cca5699
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ class I18nModule(ExtensionModule):
potargs = state.environment.get_build_command() + ['--internal', 'gettext', 'pot', pkg_arg]
if datadirs:
potargs.append(_datadirs)
potargs.append(datadirs)
if extra_arg:
potargs.append(extra_arg)
pottarget = build.RunTarget(packagename + '-pot', potargs, [], state.subdir, state.subproject)