aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Streetman <ddstreet@canonical.com>2021-10-03 13:53:52 -0400
committerEli Schwartz <eschwartz93@gmail.com>2021-10-03 16:23:46 -0400
commit3c2cca56996e3ba60af5e2d9947947e49e46c6ad (patch)
treed54e5fcb257ad29a55f198d9c00679dbb92e3c69
parent7825a6f2ca754cb31ef822dc655abaf867a9b187 (diff)
downloadmeson-3c2cca56996e3ba60af5e2d9947947e49e46c6ad.zip
meson-3c2cca56996e3ba60af5e2d9947947e49e46c6ad.tar.gz
meson-3c2cca56996e3ba60af5e2d9947947e49e46c6ad.tar.bz2
modules/i18n: fix gettext use of --datadirs param
The previous commit bd2fcb268b9ff48797bebb6a2ef94d2741234191 accidentally used the wrong var so the param name was missing, leading to an error of "unrecognized arguments" for the datadirs parameter value.
-rw-r--r--mesonbuild/modules/i18n.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/i18n.py b/mesonbuild/modules/i18n.py
index 63e4218..1457874 100644
--- a/mesonbuild/modules/i18n.py
+++ b/mesonbuild/modules/i18n.py
@@ -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)